Clear the onEmptyFilter from datasource filtering when no fields are specified

This commit is contained in:
Dean 2024-04-19 12:53:23 +01:00
parent ebd7f33330
commit cb8564f73e
1 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,12 @@
const removeFilter = id => {
filters = filters.filter(field => field.id !== id)
// Clear all filters when no fields are specified
let [first] = filters
if (filters.length == 1 && first?.onEmptyFilter) {
filters = []
}
}
const duplicateFilter = id => {