fix(core): Pass correct node reference to NodeExecuteFunctions.getLoadOptionsFunctions (no-changelog) (#7779)

NODE-947
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-11-22 13:24:23 +01:00 committed by GitHub
parent 3c56404f96
commit db77353272
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@ export class DynamicNodeParametersService {
const connectionInputData: INodeExecutionData[] = [];
const runExecutionData: IRunExecutionData = { resultData: { runData: {} } };
const workflow = this.getWorkflow(nodeTypeAndVersion, currentNodeParameters, credentials);
const node = workflow.nodes[0];
const node = workflow.nodes['Temp-Node'];
const routingNode = new RoutingNode(
workflow,
@ -224,7 +224,7 @@ export class DynamicNodeParametersService {
additionalData: IWorkflowExecuteAdditionalData,
workflow: Workflow,
) {
const node = Object.values(workflow.nodes)[0];
const node = workflow.nodes['Temp-Node'];
return NodeExecuteFunctions.getLoadOptionsFunctions(workflow, node, path, additionalData);
}
}