From 8ca3f784f107a42313b517c7da18039a231f6193 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Mon, 21 Jul 2025 09:53:31 +0700 Subject: [PATCH] fix: handle customer business type in table --- src/pages/03_customer-management/MainPage.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/pages/03_customer-management/MainPage.vue b/src/pages/03_customer-management/MainPage.vue index f24c6b3b..3ec63b43 100644 --- a/src/pages/03_customer-management/MainPage.vue +++ b/src/pages/03_customer-management/MainPage.vue @@ -1266,15 +1266,19 @@ const emptyCreateDialog = ref(false); class="ellipsis" > {{ - props.row.branch[0].businessType[ - $i18n.locale === 'eng' ? 'nameEN' : 'name' - ] + props.row.branch[0].businessType + ? props.row.branch[0].businessType[ + $i18n.locale === 'eng' ? 'nameEN' : 'name' + ] + : '-' }} {{ - props.row.branch[0].businessType[ - $i18n.locale === 'eng' ? 'nameEN' : 'name' - ] + props.row.branch[0].businessType + ? props.row.branch[0].businessType[ + $i18n.locale === 'eng' ? 'nameEN' : 'name' + ] + : '-' }}