forked from verdnatura/salix-front
refactor: refs #6739 changed router.push
This commit is contained in:
parent
9eac6b775a
commit
d73b5b6f4c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue