From 1b1a77d2945a5a7e46b36866a8d086fe22d14ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20Ioni=C8=9B=C4=83?= Date: Thu, 26 Sep 2024 17:45:17 +0100 Subject: [PATCH] fix: hasFilters --- resources/js/Components/Map/Filters/Filters.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/resources/js/Components/Map/Filters/Filters.vue b/resources/js/Components/Map/Filters/Filters.vue index ef27edd..254c8dc 100644 --- a/resources/js/Components/Map/Filters/Filters.vue +++ b/resources/js/Components/Map/Filters/Filters.vue @@ -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)) {