PR feedback

This commit is contained in:
Dean 2024-04-22 09:12:05 +01:00
parent 50d933dd01
commit ed3073a20d
1 changed files with 1 additions and 2 deletions

View File

@ -69,8 +69,7 @@
filters = filters.filter(field => field.id !== id)
// Clear all filters when no fields are specified
let [first] = filters
if (filters.length == 1 && first?.onEmptyFilter) {
if (filters.length === 1 && filters[0].onEmptyFilter) {
filters = []
}
}