From 55a6a8b4e93197271000877a54386d3a55be1164 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Mon, 21 Oct 2024 12:04:00 +0700 Subject: [PATCH] refactor: handle telephoneNo --- src/pages/05_quotation/peview/ViewForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/05_quotation/peview/ViewForm.vue b/src/pages/05_quotation/peview/ViewForm.vue index 8534a494..d8120b26 100644 --- a/src/pages/05_quotation/peview/ViewForm.vue +++ b/src/pages/05_quotation/peview/ViewForm.vue @@ -143,7 +143,7 @@ onMounted(async () => { details.value = { code: parsed.meta.source.code, createdAt: parsed.meta.source.createdAt, - createdBy: `${parsed.meta.createdBy} ${parsed.meta.source.createdBy.telephoneNo}`, + createdBy: `${parsed.meta.createdBy} ${!parsed.meta.source.createdBy ? '' : parsed.meta.source.createdBy.telephoneNo}`, payCondition: parsed.meta.source.payCondition, contactName: parsed.meta.source.contactName, contactTel: parsed.meta.source.contactTel,