From 4f93d472ac60ef1fe7bae4e0544e823b2863cc53 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 2 Dec 2024 23:02:13 +0100 Subject: [PATCH] fix: #7260 remove value --- src/components/ItemsFilterPanel.vue | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/components/ItemsFilterPanel.vue b/src/components/ItemsFilterPanel.vue index eee8955b6..084feb377 100644 --- a/src/components/ItemsFilterPanel.vue +++ b/src/components/ItemsFilterPanel.vue @@ -83,20 +83,16 @@ const applyTags = (params, search) => { }; const fetchItemTypes = async (id = selectedCategoryFk.value) => { - try { - const filter = { - fields: ['id', 'name', 'categoryFk'], - where: { categoryFk: id }, - include: 'category', - order: 'name ASC', - }; - const { data } = await axios.get('ItemTypes', { - params: { filter: JSON.stringify(filter) }, - }); - itemTypesOptions.value = data; - } catch (err) { - console.error('Error fetching item types', err); - } + const filter = { + fields: ['id', 'name', 'categoryFk'], + where: { categoryFk: id }, + include: 'category', + order: 'name ASC', + }; + const { data } = await axios.get('ItemTypes', { + params: { filter: JSON.stringify(filter) }, + }); + itemTypesOptions.value = data; }; const getCategoryClass = (category, params) => { @@ -257,7 +253,6 @@ const setCategoryList = (data) => { /> - {{ value }}