From f507bd8677577b9180586abb94d1e6b161ddc7b4 Mon Sep 17 00:00:00 2001 From: Adisak Date: Fri, 3 Oct 2025 10:45:28 +0700 Subject: [PATCH] fix --- src/controllers/ProfileController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index db52598d..0d1f0432 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -6469,7 +6469,7 @@ export class ProfileController extends Controller { posLevelId: _data.posLevel?.id ?? null, posTypeId: _data.posType?.id ?? null, position: _data.position, - posExecutive: _data.current_holders[0].positions[0].posExecutive?.posExecutiveName ?? null, + posExecutive: _data.current_holders[0]?.positions[0]?.posExecutive?.posExecutiveName ?? null, posNo: shortName ?? null, rootId: holder?.orgRoot?.id ?? null, root: holder?.orgRoot?.orgRootName ?? null,