From e695396bb88ae45154949d3181ded650c3948c89 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 3 Dec 2021 11:38:49 +0000 Subject: [PATCH] Ensure links prop is always an array when configuring layout links --- .../PropertyControls/NavigationEditor/NavigationDrawer.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/NavigationEditor/NavigationDrawer.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/NavigationEditor/NavigationDrawer.svelte index 4d1823108c..4301028ba0 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/NavigationEditor/NavigationDrawer.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/NavigationEditor/NavigationDrawer.svelte @@ -17,6 +17,7 @@ const flipDurationMs = 150 let dragDisabled = true + $: links = links || [] $: links.forEach(link => { if (!link.id) { link.id = generate()