Skip to content

Commit

Permalink
fix(editor): Add fallback for expression resolution in multi-output c…
Browse files Browse the repository at this point in the history
…ase (#9045)
  • Loading branch information
ivov authored Apr 3, 2024
1 parent a45fd0d commit bcd39a1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/editor-ui/src/composables/useWorkflowHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit bcd39a1

Please sign in to comment.