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, node: node.value,
nodeType: nodeType.value, nodeType: nodeType.value,
nodeOutputData, nodeOutputData,
nodes: workflowsStore.allNodes, nodes: props.workflow.nodes,
connections: workflowsStore.connectionsBySourceNode, connections: props.workflow.connectionsBySourceNode,
hasNodeRun: hasNodeRun.value, hasNodeRun: hasNodeRun.value,
hasMultipleInputItems, hasMultipleInputItems,
}); });

View File

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

View File

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