Skip to content

Commit

Permalink
fix(template): propagate condition recursively in `conditionallyDeepE…
Browse files Browse the repository at this point in the history
…valuate` (#6852)
  • Loading branch information
vvagaytsev authored Feb 17, 2025
1 parent 4a2cd9c commit 9ad0374
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/template/evaluate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function conditionallyDeepEvaluate(
if (v instanceof UnresolvedTemplateValue && condition(v)) {
const evaluated = evaluate(v, args)
if (evaluated.partial) {
return deepEvaluate(evaluated.resolved, args)
return conditionallyDeepEvaluate(evaluated.resolved, args, condition)
}
return evaluated.resolved
}
Expand Down

0 comments on commit 9ad0374

Please sign in to comment.