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