Fixing Regression in #2353, #2359, #2325

This commit is contained in:
Mike Farah
2025-05-09 15:29:44 +10:00
parent 2c7cce0878
commit 2c2487c0bd
3 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ func doCrossFunc(d *dataTreeNavigator, context Context, expressionNode *Expressi
}
log.Debugf("crossFunction LHS len: %v", lhs.MatchingNodes.Len())
if prefs.CalcWhenEmpty && lhs.MatchingNodes.Len() == 0 {
if prefs.CalcWhenEmpty && context.MatchingNodes.Len() > 0 && lhs.MatchingNodes.Len() == 0 {
err := resultsForRHS(d, context, nil, prefs, expressionNode.RHS, results)
if err != nil {
return Context{}, err