We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c805e9 commit b00a1d8Copy full SHA for b00a1d8
logic.js
@@ -294,7 +294,7 @@ http://ricostacruz.com/cheatsheets/umdjs.html
294
} else if (op === "reduce") {
295
scopedData = jsonLogic.apply(values[0], data);
296
scopedLogic = values[1];
297
- initial = typeof values[2] !== "undefined" ? values[2] : null;
+ initial = typeof values[2] !== "undefined" ? jsonLogic.apply(values[2], data) : null;
298
299
if ( ! Array.isArray(scopedData)) {
300
return initial;
0 commit comments