mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(editor): Use pinned data to resolve expressions in unexecuted nodes (#9693)
Co-authored-by: Milorad Filipovic <milorad@n8n.io> Co-authored-by: Mutasem Aldmour <mutasem@n8n.io>
This commit is contained in:
12
packages/workflow/src/WorkflowDataProxyHelpers.ts
Normal file
12
packages/workflow/src/WorkflowDataProxyHelpers.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { INodeExecutionData, Workflow, WorkflowExecuteMode } from '.';
|
||||
|
||||
export function getPinDataIfManualExecution(
|
||||
workflow: Workflow,
|
||||
nodeName: string,
|
||||
mode: WorkflowExecuteMode,
|
||||
): INodeExecutionData[] | undefined {
|
||||
if (mode !== 'manual') {
|
||||
return undefined;
|
||||
}
|
||||
return workflow.getPinDataOfNode(nodeName);
|
||||
}
|
||||
Reference in New Issue
Block a user