From 309c1de64f49f82f9e6b89e0335e893a8862bfc9 Mon Sep 17 00:00:00 2001 From: Davide Brembilla Date: Thu, 2 Jan 2025 07:42:08 +0100 Subject: [PATCH] Fix bug that keeps the filtering tab highlighted --- src/resources/assets/js/components/filteringTab.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/assets/js/components/filteringTab.vue b/src/resources/assets/js/components/filteringTab.vue index e9acb36..1b4a495 100644 --- a/src/resources/assets/js/components/filteringTab.vue +++ b/src/resources/assets/js/components/filteringTab.vue @@ -34,7 +34,7 @@ export default { removeFilter(key){ this.activeFilters.splice(key, 1) //If its the first filter to be removed, remove the 'And' or 'Or' - if (key == 0){ + if (this.activeFilters.length > 0 & key == 0){ this.activeFilters[0].name = this.activeFilters[0].name.substring( this.activeFilters[0].name.indexOf(' ', 0) )