From 0a6717171c7890f510d80e0e8d045ddeefd16ddb Mon Sep 17 00:00:00 2001 From: jorgep Date: Thu, 20 Jun 2024 16:31:59 +0200 Subject: [PATCH] fix: refs #7197 reactivity invoiceCorrection --- .../InvoiceIn/Card/InvoiceInDescriptor.vue | 26 +++++-------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue b/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue index f06ee43ac..b79bf556d 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue @@ -136,26 +136,12 @@ onBeforeRouteUpdate(async (to, from) => { }); async function setInvoiceCorrection(id) { - const [{ data: correctingData }, { data: correctedData }] = await Promise.all([ - axios.get('InvoiceInCorrections', { - params: { - filter: { - where: { - correctingFk: id, - }, - }, - }, - }), - axios.get('InvoiceInCorrections', { - params: { - filter: { - where: { - correctedFk: id, - }, - }, - }, - }), - ]); + const { data: correctingData } = await axios.get('InvoiceInCorrections', { + params: { filter: { where: { correctingFk: id } } }, + }); + const { data: correctedData } = await axios.get('InvoiceInCorrections', { + params: { filter: { where: { correctedFk: id } } }, + }); if (correctingData[0]) invoiceInCorrection.corrected = correctingData[0].correctedFk;