From b87e88ae7ff00f90e2439216ecc057576651d80a Mon Sep 17 00:00:00 2001 From: wbuezas Date: Fri, 5 Jul 2024 12:04:18 -0300 Subject: [PATCH] Handle quantity empty value --- src/pages/Ticket/Card/TicketPackage.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/pages/Ticket/Card/TicketPackage.vue b/src/pages/Ticket/Card/TicketPackage.vue index 8a8f688d1..9583d6662 100644 --- a/src/pages/Ticket/Card/TicketPackage.vue +++ b/src/pages/Ticket/Card/TicketPackage.vue @@ -30,6 +30,10 @@ const crudModelRequiredData = computed(() => ({ ticketFk: route.params.id, })); +const handleInputQuantityClear = (row) => { + if (row.quantity === null || row.quantity === undefined) row.quantity = 0; +}; + watch( () => route.params.id, async () => { @@ -59,7 +63,7 @@ watch( auto-load style="max-width: 800px" > -