Merge pull request #13529 from Budibase/fix/clear-empty-filter-when-all-fields-are-removed
Fix for onEmptyFilter getting stuck on internal datasource filters.
This commit is contained in:
commit
bff6340763
|
@ -67,6 +67,11 @@
|
|||
|
||||
const removeFilter = id => {
|
||||
filters = filters.filter(field => field.id !== id)
|
||||
|
||||
// Clear all filters when no fields are specified
|
||||
if (filters.length === 1 && filters[0].onEmptyFilter) {
|
||||
filters = []
|
||||
}
|
||||
}
|
||||
|
||||
const duplicateFilter = id => {
|
||||
|
|
Loading…
Reference in New Issue