0
0
Fork 0

refactor: refs #6739 changed router.push

This commit is contained in:
Jon Elias 2024-05-23 15:06:57 +02:00
parent 9eac6b775a
commit d73b5b6f4c
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}