Skip to content

Commit

Permalink
Protect against item having no text
Browse files Browse the repository at this point in the history
Some items, notably factory might not have any text.
  • Loading branch information
paul90 authored Oct 2, 2023
1 parent 67b70cc commit 3386d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwa/wiki.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ window.addEventListener("load", async () => {
}
}
wiki.lineup.push(panel)
const pragmas = panel.page.story.filter(item => item.text.startsWith('►'))
const pragmas = panel.page.story.filter(item => item.text?.startsWith('►'))
if(pragmas.length) {
console.log({pragmas:pragmas.map(item=>item.text)})
}
Expand Down

0 comments on commit 3386d0d

Please sign in to comment.