From d73b5b6f4c8fe2df9d609f4f4975814bd16c7903 Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 23 May 2024 15:06:57 +0200 Subject: [PATCH] refactor: refs #6739 changed router.push --- src/components/TransferInvoiceForm.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/TransferInvoiceForm.vue b/src/components/TransferInvoiceForm.vue index 418257304..c79c23741 100644 --- a/src/components/TransferInvoiceForm.vue +++ b/src/components/TransferInvoiceForm.vue @@ -81,8 +81,7 @@ const transferInvoice = async () => { const { data } = await axios.post('InvoiceOuts/transferInvoice', params); notify(t('Transferred invoice'), 'positive'); - closeForm(); - router.push('InvoiceOutSummary', { id: data.id }); + if (data.id) router.push({ name: 'InvoiceOutSummary', params: { id: data.id } }); } catch (err) { console.error('Error transfering invoice', err); }