fix(dispatcher): skip undefined components in collectComponents (#2404)

layout.footer (and other optional layout slots) can be undefined
when disabled. Adding undefined to the seen Set caused a crash in
componentResources.ts when destructuring component properties.
This commit is contained in:
Michael Cordell
2026-05-24 08:51:42 -07:00
committed by GitHub
parent c4b0145e59
commit d45b7a7bf6

View File

@@ -55,7 +55,7 @@ function collectComponents(
layout.footer,
]
for (const c of all) {
seen.add(c)
if (c) seen.add(c)
}
}
return [...seen]