Skip to content

Commit

Permalink
Revert "fix(kumascript): avoid ListSubpagesForSidebar error"
Browse files Browse the repository at this point in the history
This reverts commit 689a565.
  • Loading branch information
caugner committed Oct 31, 2024
1 parent 067112d commit 4d3a1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kumascript/macros/ListSubpagesForSidebar.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async function createLink(aPage) {
}
let output = ''
if(pages?.length) {
if(pages.length) {
const linkArray = await Promise.all(pages.map(createLink));
const links = linkArray.join('');
output = `<ol>${links}</ol>`;
Expand Down

0 comments on commit 4d3a1f4

Please sign in to comment.