Fix unsaved workflow blocks sharing same state
This commit is contained in:
parent
9df0dcb9ac
commit
4500388a08
|
@ -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