Remove fetching of default order method
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good
Details
gitea/hedera-web/pipeline/pr-4922-vueMigration This commit looks good
Details
This commit is contained in:
parent
975495113d
commit
7026e3416f
|
@ -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 () => {
|
const submit = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
let query =
|
let query =
|
||||||
|
@ -299,11 +292,6 @@ onMounted(async () => {
|
||||||
orderForm.value.agency = order.agencyModeFk;
|
orderForm.value.agency = order.agencyModeFk;
|
||||||
orderForm.value.address = order.addressFk;
|
orderForm.value.address = order.addressFk;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
const [defaultValues] = await getDefaultValues();
|
|
||||||
if (defaultValues) {
|
|
||||||
orderForm.value.method = defaultValues.deliveryMethod;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getAddresses();
|
getAddresses();
|
||||||
|
|
Loading…
Reference in New Issue