Fix issue with nulls in lucene isEmpty filter
This commit is contained in:
parent
0fb9c78551
commit
32dd47804f
|
@ -555,7 +555,7 @@ export const runQuery = (docs: Record<string, any>[], query: SearchFilters) => {
|
||||||
if (Array.isArray(docValue)) {
|
if (Array.isArray(docValue)) {
|
||||||
return docValue.length === 0
|
return docValue.length === 0
|
||||||
}
|
}
|
||||||
if (typeof docValue === "object") {
|
if (docValue && typeof docValue === "object") {
|
||||||
return Object.keys(docValue).length === 0
|
return Object.keys(docValue).length === 0
|
||||||
}
|
}
|
||||||
return docValue == null
|
return docValue == null
|
||||||
|
|
Loading…
Reference in New Issue