From 88b6d7c9aeb299415b98ad44dba9978841170af1 Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 9 Aug 2024 09:09:16 +0200 Subject: [PATCH] fix: refs #6900 rectificative btn reactivity --- src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;