Fix unsaved workflow blocks sharing same state
This commit is contained in:
parent
24c9042824
commit
8db6122416
|
@ -82,7 +82,7 @@ const workflowActions = store => ({
|
||||||
},
|
},
|
||||||
addBlockToWorkflow: block => {
|
addBlockToWorkflow: block => {
|
||||||
store.update(state => {
|
store.update(state => {
|
||||||
const newBlock = state.selectedWorkflow.addBlock(block)
|
const newBlock = state.selectedWorkflow.addBlock(cloneDeep(block))
|
||||||
state.selectedBlock = newBlock
|
state.selectedBlock = newBlock
|
||||||
return state
|
return state
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue