From 972b377e131fb7b110eb82658c269ebedaaa3974 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 17 Jan 2025 07:35:23 +0100 Subject: [PATCH 1/2] fix: redirect when confirming lines --- src/pages/Order/Card/OrderLines.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pages/Order/Card/OrderLines.vue b/src/pages/Order/Card/OrderLines.vue index 9d802c557..2c9b1618b 100644 --- a/src/pages/Order/Card/OrderLines.vue +++ b/src/pages/Order/Card/OrderLines.vue @@ -227,10 +227,7 @@ async function handleConfirm() { type: 'positive', }); router.push({ - name: 'TicketSale', - query: { - table: JSON.stringify({ id: ticket.data[0].ticketFk }), - }, + path: `/ticket/${ticket.data[0].ticketFk}/sale?table={"filter":{"limit":20,"skip":0}}`, }); } } From e1a395b0158312fc0e27261b70c18403a8115426 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 17 Jan 2025 13:07:30 +0100 Subject: [PATCH 2/2] refactor: redirect using params --- src/pages/Order/Card/OrderLines.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/Order/Card/OrderLines.vue b/src/pages/Order/Card/OrderLines.vue index 2c9b1618b..36dc3883e 100644 --- a/src/pages/Order/Card/OrderLines.vue +++ b/src/pages/Order/Card/OrderLines.vue @@ -227,7 +227,9 @@ async function handleConfirm() { type: 'positive', }); router.push({ - path: `/ticket/${ticket.data[0].ticketFk}/sale?table={"filter":{"limit":20,"skip":0}}`, + name: 'TicketSale', + params: { id: ticket.data[0].ticketFk }, + query: { table: JSON.stringify({ filter: { limit: 20, skip: 0 } }) }, }); } }