Fixed join filter operator to never returns null (#4396)

If the operator were passed an empty list, it would return null
which could cause some proceeding operators to crash.
This commit is contained in:
Cameron Fischer
2020-04-14 17:49:38 +01:00
committed by GitHub
parent 43fdb553b7
commit 65347ae858
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ function makeStringReducingOperator(fnCalc,initialValue) {
});
return [result.reduce(function(accumulator,currentValue) {
return fnCalc(accumulator,currentValue,operator.operand || "");
},initialValue)];
},initialValue) || ""];
};
}