1
0
Fork 0
mirror of synced 2024-07-06 15:00:49 +12:00

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

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>