From 62edd051e6805fa1dc6acda9b16c0066c4cddd27 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 15 Oct 2024 09:41:15 +0700 Subject: [PATCH] fix: default product table --- src/components/05_quotation/ProductItem.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/05_quotation/ProductItem.vue b/src/components/05_quotation/ProductItem.vue index 74f335f0..53b3e3a8 100644 --- a/src/components/05_quotation/ProductItem.vue +++ b/src/components/05_quotation/ProductItem.vue @@ -174,6 +174,7 @@ function openEmployeeTable(title: string, index: number) { } function groupByServiceId(data: typeof rows.value) { + if (data.length === 0) return; const groupedItems: { title: string; product: QuotationPayload['productServiceList'][number][]; @@ -275,7 +276,9 @@ watch(