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); }, []); }