fix: null assertion

This commit is contained in:
Methapon2001 2024-03-29 09:17:07 +07:00
parent 79a39554ee
commit 4084f8b4e8

View file

@ -95,7 +95,7 @@ export class ProfileGovernmentHistoryController extends Controller {
org: org, //สังกัด
positionField: position == null ? null : position.positionField, //สายงาน
position: record.position, //ตำแหน่ง
posLevel: record.posLevel.posLevelName || null, //ระดับ
posLevel: record.posLevel?.posLevelName || null, //ระดับ
posMasterNo: posMaster == null ? null : `${orgShortName} ${posMaster.posMasterNo}`, //เลขที่ตำแหน่ง
posType: record.posType.posTypeName, //ประเภท
posExecutive: