From b9cc3ac7cc8c3276b89ccb424da6b9ab54a018df Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 22 Sep 2020 15:14:50 +0100 Subject: [PATCH] Fix crashing when default inputs are undefined in block definition --- .../automation/AutomationPanel/BlockList/AutomationBlock.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/components/automation/AutomationPanel/BlockList/AutomationBlock.svelte b/packages/builder/src/components/automation/AutomationPanel/BlockList/AutomationBlock.svelte index 50eb977dc7..8de97dea20 100644 --- a/packages/builder/src/components/automation/AutomationPanel/BlockList/AutomationBlock.svelte +++ b/packages/builder/src/components/automation/AutomationPanel/BlockList/AutomationBlock.svelte @@ -8,7 +8,7 @@ function addBlockToAutomation() { automationStore.actions.addBlockToAutomation({ ...blockDefinition, - args: blockDefinition.args || {}, + inputs: blockDefinition.inputs || {}, stepId, type: blockType, })