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 => {
|
||||
store.update(state => {
|
||||
const newBlock = state.selectedWorkflow.addBlock(block)
|
||||
const newBlock = state.selectedWorkflow.addBlock(cloneDeep(block))
|
||||
state.selectedBlock = newBlock
|
||||
return state
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue