diff --git a/packages/editor-ui/src/components/mixins/workflowHelpers.ts b/packages/editor-ui/src/components/mixins/workflowHelpers.ts index e2436922d5..15fff2f7b1 100644 --- a/packages/editor-ui/src/components/mixins/workflowHelpers.ts +++ b/packages/editor-ui/src/components/mixins/workflowHelpers.ts @@ -389,7 +389,6 @@ export const workflowHelpers = mixins( resolveParameter(parameter: NodeParameterValue | INodeParameters | NodeParameterValue[] | INodeParameters[]) { - const inputIndex = 0; const itemIndex = 0; const runIndex = 0; const inputName = 'main'; @@ -397,6 +396,7 @@ export const workflowHelpers = mixins( const workflow = this.getWorkflow(); const parentNode = workflow.getParentNodes(activeNode.name, inputName, 1); const executionData = this.$store.getters.getWorkflowExecution as IExecutionResponse | null; + const inputIndex = workflow.getNodeConnectionOutputIndex(activeNode!.name, parentNode[0]) || 0; let connectionInputData = this.connectionInputData(parentNode, inputName, runIndex, inputIndex); let runExecutionData: IRunExecutionData;