diff --git a/src/components/common/VnSection.vue b/src/components/common/VnSection.vue index 66329d3e9..34eb14601 100644 --- a/src/components/common/VnSection.vue +++ b/src/components/common/VnSection.vue @@ -106,7 +106,7 @@ function checkIsMain() { + /> diff --git a/src/pages/Item/Card/ItemTags.vue b/src/pages/Item/Card/ItemTags.vue index 1efeeadea..2ee1fe692 100644 --- a/src/pages/Item/Card/ItemTags.vue +++ b/src/pages/Item/Card/ItemTags.vue @@ -17,7 +17,7 @@ const itemTagsRef = ref(); const tagOptions = ref([]); const valueOptionsMap = ref(new Map()); const getSelectedTagValues = async (tag) => { - if (!tag.tagFk && tag.tag.isFree) return; + if (!tag.tagFk && tag.tag?.isFree) return; const filter = { fields: ['value'], order: 'value ASC', @@ -25,6 +25,7 @@ const getSelectedTagValues = async (tag) => { }; const params = { filter: JSON.stringify(filter) }; + if (!tag.tagFk) return; const { data } = await axios.get(`Tags/${tag.tagFk}/filterValue`, { params, }); @@ -143,7 +144,6 @@ const insertTag = (rows) => { v-model="row.priority" :required="true" :rules="validate('itemTag.priority')" - style="max-width: 60%" />
{ /> + + + + + {{ t('params.tags') }} @@ -293,74 +303,6 @@ onMounted(async () => { @click="removeTag(index, params, searchFn)" /> - - {{ t('More fields') }} - - - - - - - - - - - - - - - -