mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
perf: update deepCopy (#4364)
* perf: update deepCopy * fix: using deepCopy in core and cli packages * fix: using deepCopy in editor * chore: formatting * fix: some micro optimisation in deepCopy
This commit is contained in:
@@ -31,6 +31,7 @@ import {
|
||||
IExecuteData,
|
||||
INodeConnection,
|
||||
IWebhookDescription,
|
||||
deepCopy,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
import {
|
||||
@@ -361,8 +362,8 @@ export const workflowHelpers = mixins(
|
||||
cachedWorkflow = new Workflow({
|
||||
id: workflowId,
|
||||
name: workflowName,
|
||||
nodes: copyData ? JSON.parse(JSON.stringify(nodes)) : nodes,
|
||||
connections: copyData? JSON.parse(JSON.stringify(connections)): connections,
|
||||
nodes: copyData ? deepCopy(nodes) : nodes,
|
||||
connections: copyData? deepCopy(connections): connections,
|
||||
active: false,
|
||||
nodeTypes,
|
||||
settings: this.$store.getters.workflowSettings,
|
||||
|
||||
Reference in New Issue
Block a user