From 84db937cba14cbf2e9c52df3c0b172fb9dc35045 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 14 Aug 2024 12:51:32 +0100 Subject: [PATCH] Fix null refrence exception if definitions don't exist --- packages/client/src/components/Component.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/components/Component.svelte b/packages/client/src/components/Component.svelte index 12dfaaf6d3..e793adff23 100644 --- a/packages/client/src/components/Component.svelte +++ b/packages/client/src/components/Component.svelte @@ -211,7 +211,7 @@ $: gridMetadata.set({ insideGrid: parent?._component.endsWith("/container") && parent?.layout === "grid", - ignoresLayout: definition.ignoresLayout === true, + ignoresLayout: definition?.ignoresLayout === true, id, interactive, styles: normalStyles,