diff --git a/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue b/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue index da24e50fa..e2a4fde04 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue @@ -130,9 +130,9 @@ onBeforeMount(async () => { }); onBeforeRouteUpdate(async (to, from) => { - invoiceInCorrection.correcting.length = 0; - invoiceInCorrection.corrected = null; if (to.params.id !== from.params.id) { + invoiceInCorrection.correcting.length = 0; + invoiceInCorrection.corrected = null; await setInvoiceCorrection(to.params.id); const { data } = await axios.get(`InvoiceIns/${to.params.id}/getTotals`); totalAmount.value = data.totalDueDay;