Merge pull request #14234 from Budibase/fix/lucene-isempty-filter
Fix issue with nulls in lucene isEmpty filter
This commit is contained in:
commit
f5c586f814
|
@ -555,7 +555,7 @@ export const runQuery = (docs: Record<string, any>[], query: SearchFilters) => {
|
|||
if (Array.isArray(docValue)) {
|
||||
return docValue.length === 0
|
||||
}
|
||||
if (typeof docValue === "object") {
|
||||
if (docValue && typeof docValue === "object") {
|
||||
return Object.keys(docValue).length === 0
|
||||
}
|
||||
return docValue == null
|
||||
|
|
Loading…
Reference in New Issue