mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(core): Augment data instead of copying it (#5487)
This commit is contained in:
@@ -28,7 +28,7 @@ import type {
|
||||
import * as NodeHelpers from './NodeHelpers';
|
||||
import { ExpressionError } from './ExpressionError';
|
||||
import type { Workflow } from './Workflow';
|
||||
import { deepCopy } from './utils';
|
||||
import { augmentArray, augmentObject } from './AugmentObject';
|
||||
|
||||
export function isResourceLocatorValue(value: unknown): value is INodeParameterResourceLocator {
|
||||
return Boolean(
|
||||
@@ -96,11 +96,13 @@ export class WorkflowDataProxy {
|
||||
this.workflow = workflow;
|
||||
|
||||
this.runExecutionData = isScriptingNode(activeNodeName, workflow)
|
||||
? deepCopy(runExecutionData)
|
||||
? runExecutionData !== null
|
||||
? augmentObject(runExecutionData)
|
||||
: null
|
||||
: runExecutionData;
|
||||
|
||||
this.connectionInputData = isScriptingNode(activeNodeName, workflow)
|
||||
? deepCopy(connectionInputData)
|
||||
? augmentArray(connectionInputData)
|
||||
: connectionInputData;
|
||||
|
||||
this.defaultReturnRunIndex = defaultReturnRunIndex;
|
||||
|
||||
Reference in New Issue
Block a user