From 001520adaddb88efc9094e0b7b00964bee5c0789 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 21 Jan 2021 14:52:59 +0000 Subject: [PATCH] Fix button action drawer not saving and crashing --- .../PropertyControls/EventsEditor/EventEditor.svelte | 3 +-- .../PropertyControls/EventsEditor/EventPropertyControl.svelte | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/EventEditor.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/EventEditor.svelte index 5dd8f8a423..f15b87d867 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/EventEditor.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/EventEditor.svelte @@ -13,13 +13,12 @@ const EVENT_TYPE_KEY = "##eventHandlerType" - export let event + export let actions let addActionButton let addActionDropdown let selectedAction - $: actions = event || [] $: selectedActionComponent = selectedAction && actionTypes.find(t => t.name === selectedAction[EVENT_TYPE_KEY]).component diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/EventPropertyControl.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/EventPropertyControl.svelte index 9340ec4c28..d6fd51a33d 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/EventPropertyControl.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/EventPropertyControl.svelte @@ -7,7 +7,7 @@ const dispatch = createEventDispatcher() - export let value + export let value [] export let name let drawer @@ -63,6 +63,6 @@
- +