From f09308d95682ce1454a33b44d954e75e895b675d Mon Sep 17 00:00:00 2001 From: guillermo Date: Wed, 31 Jul 2024 12:50:34 +0200 Subject: [PATCH 1/2] 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'], From 3a64929c05b6b2ba0c38319ef822f24e98df7bb3 Mon Sep 17 00:00:00 2001 From: alexm Date: Thu, 1 Aug 2024 10:35:33 +0200 Subject: [PATCH 2/2] feat(VnLocation): onCityCreated refresh provinces --- src/components/CreateNewPostcodeForm.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/CreateNewPostcodeForm.vue b/src/components/CreateNewPostcodeForm.vue index e6247226e..a426ac2b4 100644 --- a/src/components/CreateNewPostcodeForm.vue +++ b/src/components/CreateNewPostcodeForm.vue @@ -45,6 +45,7 @@ function onDataSaved(formData) { } async function onCityCreated(newTown, formData) { + await provincesFetchDataRef.value.fetch(); newTown.province = provincesOptions.value.find( (province) => province.id === newTown.provinceFk );