fix(editor): Use nodes and connection from passed in workflow in RunData (no-changelog) (#17628)

This commit is contained in:
Alex Grozav
2025-07-24 15:52:48 +03:00
committed by GitHub
parent 0574574b8f
commit c044bc36e9
3 changed files with 10 additions and 9 deletions

View File

@@ -807,8 +807,8 @@ function getNodeHints(): NodeHint[] {
node: node.value,
nodeType: nodeType.value,
nodeOutputData,
nodes: workflowsStore.allNodes,
connections: workflowsStore.connectionsBySourceNode,
nodes: props.workflow.nodes,
connections: props.workflow.connectionsBySourceNode,
hasNodeRun: hasNodeRun.value,
hasMultipleInputItems,
});

View File

@@ -61,7 +61,7 @@ describe('getGenericHints', () => {
nodeOutputData: mockNodeOutputData,
hasMultipleInputItems,
hasNodeRun,
nodes: [],
nodes: {},
connections: {},
});
@@ -87,7 +87,7 @@ describe('getGenericHints', () => {
nodeOutputData: mockNodeOutputData,
hasMultipleInputItems,
hasNodeRun,
nodes: [],
nodes: {},
connections: {},
});
@@ -126,7 +126,7 @@ describe('getGenericHints', () => {
nodeOutputData: mockNodeOutputData,
hasMultipleInputItems,
hasNodeRun,
nodes: [],
nodes: {},
connections: {},
});
@@ -151,7 +151,7 @@ describe('getGenericHints', () => {
nodeOutputData: mockNodeOutputData,
hasMultipleInputItems,
hasNodeRun,
nodes: [],
nodes: {},
connections: {},
});
@@ -176,7 +176,7 @@ describe('getGenericHints', () => {
nodeOutputData: mockNodeOutputData,
hasMultipleInputItems,
hasNodeRun,
nodes: [],
nodes: {},
connections: {},
});
@@ -202,7 +202,7 @@ describe('getGenericHints', () => {
nodeOutputData: mockNodeOutputData,
hasMultipleInputItems,
hasNodeRun,
nodes: [],
nodes: {},
connections: {},
});

View File

@@ -14,6 +14,7 @@ import type {
IConnections,
INode,
INodeExecutionData,
INodes,
INodeTypeDescription,
NodeHint,
} from 'n8n-workflow';
@@ -381,7 +382,7 @@ export function getGenericHints({
nodeType: INodeTypeDescription;
nodeOutputData: INodeExecutionData[];
hasMultipleInputItems: boolean;
nodes: INode[];
nodes: INodes;
connections: IConnections;
hasNodeRun: boolean;
}) {