0
0
Fork 0

fix: #7260 remove value

This commit is contained in:
Javier Segarra 2024-12-02 23:02:13 +01:00
parent 1b975193f0
commit 4f93d472ac
1 changed files with 10 additions and 15 deletions

View File

@ -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) => {
/>
</QItemSection>
<QItemSection class="col">
{{ value }}
<VnSelect
v-if="!value?.selectedTag?.isFree && value.valueOptions"
:label="t('components.itemsFilterPanel.value')"