Skip to content

Commit

Permalink
fix: hasFilters
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Sep 26, 2024
1 parent e38b722 commit 1b1a77d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions resources/js/Components/Map/Filters/Filters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,7 @@
status: getFilterValue('status', []),
});
const hasFilters = computed(() =>
Object.entries(form)
.map(([key, value]) => value)
.flat()
.some(Boolean)
);
const hasFilters = computed(() => form.service.length || form.status.length);
const setFilterValue = (value) => {
if (isObject(value)) {
Expand Down

0 comments on commit 1b1a77d

Please sign in to comment.