mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-11 04:15:42 +00:00
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:
@@ -70,7 +70,7 @@ function makeStringReducingOperator(fnCalc,initialValue) {
|
||||
});
|
||||
return [result.reduce(function(accumulator,currentValue) {
|
||||
return fnCalc(accumulator,currentValue,operator.operand || "");
|
||||
},initialValue)];
|
||||
},initialValue) || ""];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user