Skip to content

Commit 3b0fce2

Browse files
committed
error in getSQL on invalid rules
1 parent e9f659e commit 3b0fce2

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

dist/query-builder.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,10 @@
365365
$.error('Unable to build SQL query with '+ data.condition +' condition');
366366
}
367367

368+
if (!data.rules) {
369+
return '';
370+
}
371+
368372
var parts = [];
369373

370374
$.each(data.rules, function(i, rule) {

0 commit comments

Comments
 (0)