From 452c2b9db0a74876932682b888e89f6027905818 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Fri, 29 Mar 2024 10:34:30 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=84=E0=B9=89=E0=B8=99=E0=B8=AB=E0=B8=B2?= =?UTF-8?q?=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=87?= =?UTF-8?q?=E0=B8=81=E0=B8=A3=E0=B8=93=E0=B8=B5=E0=B9=84=E0=B8=A1=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=E0=B8=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ProfileGovernmentController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/ProfileGovernmentController.ts b/src/controllers/ProfileGovernmentController.ts index 42304e69..611d8e79 100644 --- a/src/controllers/ProfileGovernmentController.ts +++ b/src/controllers/ProfileGovernmentController.ts @@ -95,9 +95,9 @@ export class ProfileGovernmentHistoryController extends Controller { org: org, //สังกัด positionField: position == null ? null : position.positionField, //สายงาน position: record.position, //ตำแหน่ง - posLevel: record.posLevel?.posLevelName || null, //ระดับ + posLevel: record.posLevel == null ? null : record.posLevel.posLevelName, //ระดับ posMasterNo: posMaster == null ? null : `${orgShortName} ${posMaster.posMasterNo}`, //เลขที่ตำแหน่ง - posType: record.posType.posTypeName, //ประเภท + posType: record.posType == null ? null : record.posType.posTypeName, //ประเภท posExecutive: position == null || position.posExecutive == null ? null