mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Fix: selection of true/false values in filters wasn't working.
This commit is contained in:
parent
31cc6fdaeb
commit
ff099b4314
@ -117,7 +117,12 @@
|
||||
if (!_.isArray(filter.current)) {
|
||||
filter.current = [filter.current];
|
||||
};
|
||||
return (memo && _.some(filter.current, function(v) { return v == row[filter.name] }));
|
||||
|
||||
return (memo && _.some(filter.current, function(v) {
|
||||
// We compare with either the value or the String representation of the value,
|
||||
// because Select2 casts true/false to "true"/"false".
|
||||
return v == row[filter.name] || String(row[filter.name]) == v
|
||||
}));
|
||||
}, true);
|
||||
});
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user