diff --git a/packages/frontend-core/src/components/FilterBuilder.svelte b/packages/frontend-core/src/components/FilterBuilder.svelte index b90882449f..074c2dbd9b 100644 --- a/packages/frontend-core/src/components/FilterBuilder.svelte +++ b/packages/frontend-core/src/components/FilterBuilder.svelte @@ -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 = [] } }