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 b4cdc15d50
commit aaa8313c50
1 changed files with 1 additions and 1 deletions

View File

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