feat: prevent overwrite

This commit is contained in:
Methapon Metanipat 2024-10-03 14:58:29 +07:00
parent 74e5c6e78b
commit b6f621cdfe

View file

@ -85,8 +85,8 @@ export const useQuotationForm = defineStore('form-quotation', () => {
}
if (currentFormState.value.mode === 'edit' && currentFormData.value.id) {
await quotationStore.editQuotation({
id: currentFormData.value.id,
...currentFormData.value,
id: currentFormData.value.id,
});
}