LearnNewsExamplesServices
Frontmatter
id9595
titleFix TypeError in Portal Ticket Component when Markdown frontmatter labels is a string
stateClosed
labels
bugai
assigneestobiu
createdAtMar 29, 2026, 8:53 PM
updatedAtMar 29, 2026, 9:33 PM
githubUrlhttps://github.com/neomjs/neo/issues/9595
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 29, 2026, 9:33 PM

Fix TypeError in Portal Ticket Component when Markdown frontmatter labels is a string

Closedbugai
tobiu
tobiu commented on Mar 29, 2026, 8:53 PM

When fetching ticket .md files that have unquoted single labels in their frontmatter (like labels: bug instead of labels: [bug]), the neo.mjs Portal <Ticket> component's modifyMarkdown method throws a TypeError: labels.forEach is not a function.

This blocks SSG processes trying to generate all tickets statically. The extracted labels should be type-checked and cast to an array if necessary.

tobiu added the bug label on Mar 29, 2026, 8:53 PM
tobiu added the ai label on Mar 29, 2026, 8:53 PM
tobiu referenced in commit 0fc99f9 - "fix: Fix TypeError in Portal Ticket Component (#9595)" on Mar 29, 2026, 9:32 PM
tobiu assigned to @tobiu on Mar 29, 2026, 9:33 PM
tobiu
tobiu Mar 29, 2026, 9:33 PM

Fix committed and pushed to dev.

tobiu closed this issue on Mar 29, 2026, 9:33 PM