LearnNewsExamplesServices
Frontmatter
id8633
titleFix HeaderCanvas navRects TypeError
stateClosed
labels
bugai
assigneestobiu
createdAtJan 14, 2026, 4:23 PM
updatedAtJan 14, 2026, 4:25 PM
githubUrlhttps://github.com/neomjs/neo/issues/8633
authortobiu
commentsCount1
parentIssue8630
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 14, 2026, 4:25 PM

Fix HeaderCanvas navRects TypeError

Closed v11.22.0 bugai
tobiu
tobiu commented on Jan 14, 2026, 4:23 PM

Fix TypeError: me.navRects.forEach is not a function in Portal.canvas.HeaderCanvas.

  • Add type checking in drawAuras.
  • Ensure updateNavRects correctly handles the incoming data.
  • Add debugging to trace the data shape.
tobiu added the bug label on Jan 14, 2026, 4:23 PM
tobiu added the ai label on Jan 14, 2026, 4:23 PM
tobiu added parent issue #8630 on Jan 14, 2026, 4:23 PM
tobiu assigned to @tobiu on Jan 14, 2026, 4:24 PM
tobiu
tobiu Jan 14, 2026, 4:24 PM

Input from Gemini 3 Pro:

✦ I have fixed the TypeError by adding an Array.isArray check in drawAuras and updateNavRects. This ensures robustness against invalid data types.

tobiu closed this issue on Jan 14, 2026, 4:25 PM