Skip to content

Commit

Permalink
Fix #928 error when getting rules with "allow_invalid" flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Oct 9, 2021
1 parent 7e8527d commit b6160dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/public.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ QueryBuilder.prototype.getRules = function(options) {
};

if (rule.filter && rule.filter.data || rule.data) {
ruleData.data = $.extendext(true, 'replace', {}, rule.filter.data, rule.data);
ruleData.data = $.extendext(true, 'replace', {}, rule.filter ? rule.filter.data : {}, rule.data);
}

if (options.get_flags) {
Expand Down

0 comments on commit b6160dc

Please sign in to comment.