IS NULL should check on value attribute

This commit is contained in:
Zaid Abdulla committed 2019-11-13 19:07:42 -08:00
1 parent c66739c420
commit 27fb235d20
1 file changed
+12 -1
+12 -1
View File
@@ -51,7 +51,18 @@ export function processDeviceFilter(filter): Expression {
else if (exp[0] === "<>" && exp[2] !== true)
return ["=", ["PARAM", "_tags"], t];
} else if (
["=", "<>", ">", ">=", "<", "<=", "LIKE", "NOT LIKE"].includes(exp[0])
[
"=",
"<>",
">",
">=",
"<",
"<=",
"LIKE",
"NOT LIKE",
"IS NULL",
"IS NOT NULL"
].includes(exp[0])
) {
let e = map(exp, ee => {
if (