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; }