From 7026e3416ff75541e7b431ad827083490507ed55 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 2 Sep 2024 12:39:03 -0300 Subject: [PATCH] Remove fetching of default order method --- src/pages/Ecomerce/CheckoutView.vue | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/pages/Ecomerce/CheckoutView.vue b/src/pages/Ecomerce/CheckoutView.vue index 19f5e9cb..900ab150 100644 --- a/src/pages/Ecomerce/CheckoutView.vue +++ b/src/pages/Ecomerce/CheckoutView.vue @@ -239,13 +239,6 @@ const onPreviousStep = async stepIndex => { } }; -const getDefaultValues = async () => { - return await jApi.query( - `SELECT deliveryMethod, agencyModeFk, addressFk, defaultAgencyFk - FROM myBasketDefaults` - ); -}; - const submit = async () => { loading.value = true; let query = @@ -299,11 +292,6 @@ onMounted(async () => { orderForm.value.agency = order.agencyModeFk; orderForm.value.address = order.addressFk; } - } else { - const [defaultValues] = await getDefaultValues(); - if (defaultValues) { - orderForm.value.method = defaultValues.deliveryMethod; - } } getAddresses();