TSK-987: show filter with 0 value (#2855)

Signed-off-by: Vyacheslav Tumanov <me@slavatumanov.me>
This commit is contained in:
Vyacheslav Tumanov 2023-03-30 10:10:07 +05:00 committed by GitHub
parent 398182e3e6
commit 2e3dcb348a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,6 +76,9 @@
const value = getObjectValue(filter.key.key, object) ?? undefined
targets.set(value, (targets.get(value) ?? 0) + 1)
}
for (const object of filter.value) {
if (!targets.has(object)) targets.set(object, 0)
}
const resultQuery =
search !== '' && clazz.sortingKey