From 128904970bb793d698f879f4bacb3a0d71659def Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 10 Jun 2024 11:53:47 +0200 Subject: [PATCH] fix(url): filter --- src/components/ui/VnFilterPanel.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/ui/VnFilterPanel.vue b/src/components/ui/VnFilterPanel.vue index ee6f1028b..23e932c34 100644 --- a/src/components/ui/VnFilterPanel.vue +++ b/src/components/ui/VnFilterPanel.vue @@ -35,7 +35,7 @@ const $props = defineProps({ }, hiddenTags: { type: Array, - default: () => [], + default: () => ['filter'], }, customTags: { type: Array, @@ -158,7 +158,7 @@ const customTags = computed(() => async function remove(key) { delete params.value[key]; - delete params.value.filter?.where[key]; + delete params.value.filter?.where?.[key]; params.value[key] = undefined; await arrayData.applyFilter({ params: params.value }); emit('remove', key); @@ -223,7 +223,6 @@ function formatValue(value) { {{ t(`No filters applied`) }}
- {{ tags }}