From 4500388a0880f19c94089180e1996cbae0d4eedc Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 14 Sep 2020 11:48:08 +0100 Subject: [PATCH] Fix unsaved workflow blocks sharing same state --- packages/builder/src/builderStore/store/workflow/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/builder/src/builderStore/store/workflow/index.js b/packages/builder/src/builderStore/store/workflow/index.js index 947bb6edda..de312e507b 100644 --- a/packages/builder/src/builderStore/store/workflow/index.js +++ b/packages/builder/src/builderStore/store/workflow/index.js @@ -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 })