Fix unsaved workflow blocks sharing same state

This commit is contained in:
Andrew Kingston 2020-09-14 11:48:08 +01:00
parent 9df0dcb9ac
commit 4500388a08
1 changed files with 1 additions and 1 deletions

View File

@ -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
})