fix(editor): connections lost when renaming (#3899)

fix rename bug
This commit is contained in:
Mutasem Aldmour
2022-08-19 10:12:46 +02:00
committed by GitHub
parent 9bf71e73cc
commit ad0c214f8e

View File

@@ -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;