Number of filters set is different between match any and match all in the Data section (#11194)

* Make sure displayed filter count is correct

* Fix for false boolean filter

* Correct filter count in Data section
This commit is contained in:
melohagan 2023-07-11 13:48:17 +01:00 committed by GitHub
parent c3caea39d3
commit 8f94f6c53b
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@
$: text = getText(filters)
const getText = filters => {
const count = filters?.length
const count = filters?.filter(filter => filter.field)?.length
return count ? `Filter (${count})` : "Filter"
}
</script>