Fix: Search filters not resetting

This commit is contained in:
NihadBadalov 2024-03-11 23:29:20 +01:00
parent 57f79d231b
commit 07f02b2ceb

View file

@ -154,7 +154,7 @@
<span class="ps-3"> <span class="ps-3">
{{ getTaggedMonitorCount(tag) }} {{ getTaggedMonitorCount(tag) }}
<span <span
v-if="$router.currentRoute.value.query?.tags?.split(',').includes(tag.id)" v-if="$router.currentRoute.value.query?.tags?.split(',').includes(''+tag.id)"
class="px-1 filter-active" class="px-1 filter-active"
> >
<font-awesome-icon icon="check" /> <font-awesome-icon icon="check" />
@ -253,7 +253,9 @@ export default {
}, },
clearFilters() { clearFilters() {
this.$emit("updateFilter", { this.$emit("updateFilter", {
status: null, status: undefined,
active: undefined,
tags: undefined,
}); });
}, },
getExistingTags() { getExistingTags() {