From 0e59a8b2e09bf8266d17add4c8ace129154f8034 Mon Sep 17 00:00:00 2001 From: GauthierWebDev Date: Fri, 18 Apr 2025 18:43:46 +0200 Subject: [PATCH] style: Update null check for nextPage variable --- app/components/syntax/PrevNextLinks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/syntax/PrevNextLinks.tsx b/app/components/syntax/PrevNextLinks.tsx index 5cabe56..77940dd 100644 --- a/app/components/syntax/PrevNextLinks.tsx +++ b/app/components/syntax/PrevNextLinks.tsx @@ -70,7 +70,7 @@ export function PrevNextLinks() { // In case the next page is the same as the current page (in subitems), // we need to skip it to get the correct next page. - if (nextPage.href === urlPathname) { + if (nextPage?.href === urlPathname) { nextPage = allLinks[linkIndex + 2] || null; }