From e2d3154878974fb8b4b8f83f34e0ffc10547e162 Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 11 Sep 2024 09:21:30 +0200 Subject: [PATCH] fix(ClaimLines): not reload when change quantity --- src/pages/Claim/Card/ClaimLines.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/Claim/Card/ClaimLines.vue b/src/pages/Claim/Card/ClaimLines.vue index 52fbfca98..77c7dacf1 100644 --- a/src/pages/Claim/Card/ClaimLines.vue +++ b/src/pages/Claim/Card/ClaimLines.vue @@ -45,7 +45,7 @@ async function onFetchClaim(data) { const amount = ref(); const amountClaimed = ref(); -async function onFetch(rows, newRows) { +function onFetch(rows, newRows) { if (newRows) rows = newRows; amount.value = 0; amountClaimed.value = 0; @@ -155,7 +155,7 @@ function showImportDialog() { async function saveWhenHasChanges() { if (claimLinesForm.value.getChanges().updates) { await claimLinesForm.value.onSubmit(); - await claimLinesForm.value.reload(); + onFetch(claimLinesForm.value.formData); } } @@ -211,7 +211,7 @@ async function saveWhenHasChanges() {