From 6c374061d07556dd2d54582fefe71299843caa35 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Fri, 17 May 2024 15:24:17 -0300 Subject: [PATCH] Handle request orders --- src/pages/Zone/Card/ZoneCreateWarehouse.vue | 6 ------ src/pages/Zone/Card/ZoneWarehouses.vue | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/pages/Zone/Card/ZoneCreateWarehouse.vue b/src/pages/Zone/Card/ZoneCreateWarehouse.vue index 461f907ff..7625b18e4 100644 --- a/src/pages/Zone/Card/ZoneCreateWarehouse.vue +++ b/src/pages/Zone/Card/ZoneCreateWarehouse.vue @@ -17,7 +17,6 @@ const route = useRoute(); const ZoneWarehouseFormData = reactive({ warehouseFk: null, }); -const closeButton = ref(null); const warehousesOptions = ref([]); @@ -28,11 +27,6 @@ const createZoneWarehouse = () => { } catch (error) { console.error(error); } - closeForm(); -}; - -const closeForm = () => { - if (closeButton.value) closeButton.value.click(); }; diff --git a/src/pages/Zone/Card/ZoneWarehouses.vue b/src/pages/Zone/Card/ZoneWarehouses.vue index 44b68b70b..461b54b8a 100644 --- a/src/pages/Zone/Card/ZoneWarehouses.vue +++ b/src/pages/Zone/Card/ZoneWarehouses.vue @@ -56,7 +56,7 @@ watch( } ); -const fetchWarehouses = async () => await paginateRef.value.fetch(); +const fetchWarehouses = () => paginateRef.value.fetch();