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:
parent
c3caea39d3
commit
8f94f6c53b
|
@ -17,7 +17,7 @@
|
||||||
$: text = getText(filters)
|
$: text = getText(filters)
|
||||||
|
|
||||||
const getText = filters => {
|
const getText = filters => {
|
||||||
const count = filters?.length
|
const count = filters?.filter(filter => filter.field)?.length
|
||||||
return count ? `Filter (${count})` : "Filter"
|
return count ? `Filter (${count})` : "Filter"
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue