From 205ae0986f4be4cbfb5351c25be5dff833520773 Mon Sep 17 00:00:00 2001 From: Jan Oberhauser Date: Fri, 24 Dec 2021 10:10:13 +0100 Subject: [PATCH] :bug: Display correct expression result for not first output data --- packages/editor-ui/src/components/mixins/workflowHelpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor-ui/src/components/mixins/workflowHelpers.ts b/packages/editor-ui/src/components/mixins/workflowHelpers.ts index e2436922d..15fff2f7b 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;