From ab8d6e4e4d550f97a1d7316bf4e11cdd7ca502f8 Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Mon, 17 Jun 2024 15:51:39 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E0=B8=95=E0=B8=A3=E0=B8=A7=E0=B8=88?= =?UTF-8?q?=E0=B8=84=E0=B9=88=E0=B8=B2=20undefined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../03_customer-management/CustomerInfoComponent.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/03_customer-management/CustomerInfoComponent.vue b/src/components/03_customer-management/CustomerInfoComponent.vue index 286d56f7..9950b6ea 100644 --- a/src/components/03_customer-management/CustomerInfoComponent.vue +++ b/src/components/03_customer-management/CustomerInfoComponent.vue @@ -72,7 +72,9 @@ async function fetchList() { : 'INACTIVE', }); if (result) { - currentCustomerName.value = result.result[0].customer?.customerName ?? ''; + if (currentStatus.value !== 'INACTIVE') { + currentCustomerName.value = result.result[0].customer?.customerName ?? ''; + } maxPageBranch.value = Math.ceil(result.total / pageSizeBranch.value); branch.value = result.result; }