From 1163194b10a95ca5b7d32b677cac66d36d3922fd Mon Sep 17 00:00:00 2001 From: Kittapath Date: Tue, 6 Feb 2024 12:04:42 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20select=20?= =?UTF-8?q?=E0=B8=84=E0=B8=99=E0=B8=84=E0=B8=A3=E0=B8=AD=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/PositionController.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/controllers/PositionController.ts b/src/controllers/PositionController.ts index 7a7500eb..10305697 100644 --- a/src/controllers/PositionController.ts +++ b/src/controllers/PositionController.ts @@ -745,15 +745,13 @@ export class PositionController extends Controller { posMasterNo: posMaster.posMasterNo, posMasterNoSuffix: posMaster.posMasterNoSuffix, fullNameNextHolder: - posMaster.current_holder.prefix + - posMaster.current_holder.firstName + - " " + - posMaster.current_holder.lastName, + posMaster.current_holder == null + ? null + : `${posMaster.current_holder.prefix}${posMaster.current_holder.firstName} ${posMaster.current_holder.lastName}`, fullNameCurrentHolder: - posMaster.next_holder.prefix + - posMaster.next_holder.firstName + - " " + - posMaster.next_holder.lastName, + posMaster.next_holder == null + ? null + : `${posMaster.next_holder.prefix}${posMaster.next_holder.firstName} ${posMaster.next_holder.lastName}`, orgShortname: body.type === 0 ? posMaster.orgRoot.orgRootShortName