From 2df1f055550535b35706cf28cba05f6f2cae9c68 Mon Sep 17 00:00:00 2001 From: Andrei Rusu Date: Thu, 4 Apr 2024 09:29:41 +0200 Subject: [PATCH] Update pageNavigator.ejs --- src/includes/pageNavigator.ejs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/includes/pageNavigator.ejs b/src/includes/pageNavigator.ejs index 678e4b1c..e1397a85 100644 --- a/src/includes/pageNavigator.ejs +++ b/src/includes/pageNavigator.ejs @@ -3,9 +3,9 @@ function arrayFlatten(navItems) { return navItems.reduce((result, item) => { if (item.links) { return result.concat(arrayFlatten(item.links)); - } else { - return result.concat(item); - } + } + + return result.concat(item); }, []); }