Fix unsaved workflow blocks sharing same state

This commit is contained in:
Andrew Kingston 2020-09-14 11:48:08 +01:00
parent 24c9042824
commit 8db6122416
1 changed files with 1 additions and 1 deletions

View File

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