From 88ef4c70609569027932b35038a6fa995a612360 Mon Sep 17 00:00:00 2001 From: Jorge Vargas Date: Thu, 10 Apr 2025 18:37:24 -0600 Subject: [PATCH] Handle out of index last-added pages --- src/components/lastAdded/FooterNav.astro | 2 +- src/layouts/PaginatedAlbumList.astro | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/lastAdded/FooterNav.astro b/src/components/lastAdded/FooterNav.astro index edbdb65..8c8682b 100644 --- a/src/components/lastAdded/FooterNav.astro +++ b/src/components/lastAdded/FooterNav.astro @@ -17,7 +17,7 @@ fullPageList.forEach((n) => { }) const currentListIndex = pageList.findIndex((l) => l.includes(page)) -const currentList = pageList[currentListIndex] +const currentList = pageList[currentListIndex] ?? [] ---