From ad0c214f8ec2088ff30f408fe5ec51216468cdff Mon Sep 17 00:00:00 2001 From: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com> Date: Fri, 19 Aug 2022 10:12:46 +0200 Subject: [PATCH] fix(editor): connections lost when renaming (#3899) fix rename bug --- packages/editor-ui/src/components/mixins/workflowHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/mixins/workflowHelpers.ts b/packages/editor-ui/src/components/mixins/workflowHelpers.ts index 9b9cddb655..0755db5efc 100644 --- a/packages/editor-ui/src/components/mixins/workflowHelpers.ts +++ b/packages/editor-ui/src/components/mixins/workflowHelpers.ts @@ -324,7 +324,7 @@ export const workflowHelpers = mixins( const nodes = this.getNodes(); const connections = (this.$store.getters.allConnections as IConnections); const cacheKey = JSON.stringify({nodes, connections}); - if (cachedWorkflow && cacheKey === cachedWorkflowKey) { + if (!copyData && cachedWorkflow && cacheKey === cachedWorkflowKey) { return cachedWorkflow; } cachedWorkflowKey = cacheKey;