Clear the onEmptyFilter from datasource filtering when no fields are specified
This commit is contained in:
parent
ebd7f33330
commit
cb8564f73e
|
@ -67,6 +67,12 @@
|
||||||
|
|
||||||
const removeFilter = id => {
|
const removeFilter = id => {
|
||||||
filters = filters.filter(field => field.id !== 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 => {
|
const duplicateFilter = id => {
|
||||||
|
|
Loading…
Reference in New Issue