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,