From f09308d95682ce1454a33b44d954e75e895b675d Mon Sep 17 00:00:00 2001 From: guillermo Date: Wed, 31 Jul 2024 12:50:34 +0200 Subject: [PATCH] fix: refs #7413 No id tag --- src/components/ItemsFilterPanel.vue | 1 + src/pages/Item/ItemListFilter.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/ItemsFilterPanel.vue b/src/components/ItemsFilterPanel.vue index 94adfe0ff..743c2c9d1 100644 --- a/src/components/ItemsFilterPanel.vue +++ b/src/components/ItemsFilterPanel.vue @@ -112,6 +112,7 @@ const getCategoryClass = (category, params) => { const getSelectedTagValues = async (tag) => { try { + if (!tag?.selectedTag?.id) return; tag.value = null; const filter = { fields: ['value'], diff --git a/src/pages/Item/ItemListFilter.vue b/src/pages/Item/ItemListFilter.vue index a51f9ebb4..62c0c56dc 100644 --- a/src/pages/Item/ItemListFilter.vue +++ b/src/pages/Item/ItemListFilter.vue @@ -56,6 +56,7 @@ const onCategoryChange = async (categoryFk, search) => { const getSelectedTagValues = async (tag) => { try { + if (!tag?.selectedTag?.id) return; tag.value = null; const filter = { fields: ['value'],