Fix crashing when default inputs are undefined in block definition
This commit is contained in:
parent
8fe50febc4
commit
b9cc3ac7cc
|
@ -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,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue