diff --git a/src/pages/Ticket/TicketList.vue b/src/pages/Ticket/TicketList.vue index 5b4692197..1e9414f54 100644 --- a/src/pages/Ticket/TicketList.vue +++ b/src/pages/Ticket/TicketList.vue @@ -60,7 +60,7 @@ onMounted(async () => { } else if (route.query?.table) { const query = route.query?.table; const clientId = +JSON.parse(query)?.clientFk; - await onClientSelected({ clientId }); + if (clientId) await onClientSelected({ clientId }); } if (tableRef.value) tableRef.value.create.formInitialData = formInitialData.value; }); @@ -287,7 +287,7 @@ watch( async (newValue) => { if (newValue) { const clientId = +JSON.parse(newValue)?.clientFk; - await onClientSelected({ clientId }); + if (clientId) await onClientSelected({ clientId }); if (tableRef.value) tableRef.value.create.formInitialData = formInitialData.value; }