fix: reset not actually reset

This commit is contained in:
Methapon Metanipat 2024-10-18 14:33:27 +07:00
parent 89a0b15fc6
commit b5b5d4f02b

View file

@ -212,9 +212,10 @@ const productServiceList = ref<
Required<QuotationPayload['productServiceList'][number]>[]
>([]);
function closeTab() {
async function closeTab() {
if (quotationFormState.value.mode === 'edit') {
quotationForm.resetForm();
await assignToProductServiceList();
} else {
dialogWarningClose(t, {
message: t('dialog.message.close'),