mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-23 11:44:06 -08:00
fix(editor): Add fallback for expression resolution in multi-output case (#9045)
This commit is contained in:
parent
a45fd0dbf4
commit
bcd39a110b
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue