Fix crashing when default inputs are undefined in block definition

This commit is contained in:
Andrew Kingston 2020-09-22 15:14:50 +01:00
parent 8fe50febc4
commit b9cc3ac7cc
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
function addBlockToAutomation() { function addBlockToAutomation() {
automationStore.actions.addBlockToAutomation({ automationStore.actions.addBlockToAutomation({
...blockDefinition, ...blockDefinition,
args: blockDefinition.args || {}, inputs: blockDefinition.inputs || {},
stepId, stepId,
type: blockType, type: blockType,
}) })