From d45b7a7bf68ec2a423bf4d5517c24598cb8d45b5 Mon Sep 17 00:00:00 2001 From: Michael Cordell Date: Sun, 24 May 2026 08:51:42 -0700 Subject: [PATCH] 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. --- quartz/plugins/pageTypes/dispatcher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quartz/plugins/pageTypes/dispatcher.ts b/quartz/plugins/pageTypes/dispatcher.ts index bb6b6de..0ac03ff 100644 --- a/quartz/plugins/pageTypes/dispatcher.ts +++ b/quartz/plugins/pageTypes/dispatcher.ts @@ -55,7 +55,7 @@ function collectComponents( layout.footer, ] for (const c of all) { - seen.add(c) + if (c) seen.add(c) } } return [...seen]