From 6e499825314d905d9c5fdb214a6131d0c3fdf891 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Fri, 17 May 2024 15:18:10 -0300 Subject: [PATCH] Revert "Handle onsubmit" This reverts commit 7c5b61cca8bc15516f69ae0be529c9e2021507c0. --- src/pages/Zone/Card/ZoneCreateWarehouse.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/pages/Zone/Card/ZoneCreateWarehouse.vue b/src/pages/Zone/Card/ZoneCreateWarehouse.vue index ff8473d47..461f907ff 100644 --- a/src/pages/Zone/Card/ZoneCreateWarehouse.vue +++ b/src/pages/Zone/Card/ZoneCreateWarehouse.vue @@ -21,17 +21,14 @@ const closeButton = ref(null); const warehousesOptions = ref([]); -const onSubmit = async () => await createZoneWarehouse(); - const createZoneWarehouse = () => { try { axios.post(`Zones/${route.params.id}/warehouses`, ZoneWarehouseFormData); emit('onSubmit'); } catch (error) { console.error(error); - } finally { - closeForm(); } + closeForm(); }; const closeForm = () => { @@ -46,7 +43,7 @@ const closeForm = () => { auto-load @on-fetch="(data) => (warehousesOptions = data)" /> - +