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 ); 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'],