diff --git a/packages/editor-ui/src/composables/useWorkflowHelpers.ts b/packages/editor-ui/src/composables/useWorkflowHelpers.ts index 2b99fee6f2..1e26d6d8a8 100644 --- a/packages/editor-ui/src/composables/useWorkflowHelpers.ts +++ b/packages/editor-ui/src/composables/useWorkflowHelpers.ts @@ -197,7 +197,12 @@ export function resolveParameter( ) { runIndexCurrent = workflowRunData[contextNode!.name].length - 1; } - const _executeData = executeData(parentNode, contextNode!.name, inputName, runIndexCurrent); + let _executeData = executeData(parentNode, contextNode!.name, inputName, runIndexCurrent); + + if (!_executeData.source) { + // fallback to parent's run index for multi-output case + _executeData = executeData(parentNode, contextNode!.name, inputName, runIndexParent); + } ExpressionEvaluatorProxy.setEvaluator( useSettingsStore().settings.expressions?.evaluator ?? 'tmpl',