This commit is contained in:
Adria Navarro 2024-04-11 18:03:28 +02:00
parent fc96d51519
commit 03589292d5
1 changed files with 2 additions and 6 deletions

View File

@ -170,12 +170,8 @@
}
function handleOnEmptyFilter(value) {
const existingFilter = filters?.find(filter => filter.onEmptyFilter)
if (existingFilter) {
existingFilter.onEmptyFilter = value
} else {
filters.push({ onEmptyFilter: value })
}
filters = filters?.filter(filter => !filter.onEmptyFilter)
filters.push({ onEmptyFilter: value })
}
</script>