From 8bff7fc1d617bf1e5d2c06115248232fe673cd4c Mon Sep 17 00:00:00 2001 From: wbuezas Date: Thu, 7 Nov 2024 21:09:39 -0300 Subject: [PATCH] fix: reset category --- src/pages/Order/Card/OrderCatalogFilter.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/pages/Order/Card/OrderCatalogFilter.vue b/src/pages/Order/Card/OrderCatalogFilter.vue index 27023262e..532c79322 100644 --- a/src/pages/Order/Card/OrderCatalogFilter.vue +++ b/src/pages/Order/Card/OrderCatalogFilter.vue @@ -10,10 +10,8 @@ import VnFilterPanelChip from 'components/ui/VnFilterPanelChip.vue'; import VnInput from 'src/components/common/VnInput.vue'; import getParamWhere from 'src/filters/getParamWhere'; import CatalogFilterValueDialog from 'src/pages/Order/Card/CatalogFilterValueDialog.vue'; +import { useArrayData } from 'composables/useArrayData'; -const { t } = useI18n(); - -const route = useRoute(); const props = defineProps({ dataKey: { type: String, @@ -29,6 +27,11 @@ const props = defineProps({ }, }); +const { t } = useI18n(); +const route = useRoute(); + +const arrayData = useArrayData(props.dataKey); + const categoryList = ref(null); const selectedCategoryFk = ref(null); const typeList = ref([]); @@ -54,7 +57,8 @@ const resetCategory = (params, search) => { typeList.value = null; params.categoryFk = null; params.typeFk = null; - search(); + arrayData.store.userFilter = null; + removeTagGroupParam(params, search); }; const selectCategory = (params, category, search) => {