From 142c2b60fae1c16c646ae1a048521d06f72ef693 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 25 Apr 2024 10:19:00 +0700 Subject: [PATCH] fix --- src/controllers/EmployeePositionController.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/EmployeePositionController.ts b/src/controllers/EmployeePositionController.ts index a397a95f..33ad2684 100644 --- a/src/controllers/EmployeePositionController.ts +++ b/src/controllers/EmployeePositionController.ts @@ -1121,9 +1121,9 @@ export class EmployeePositionController extends Controller { orgChild2Id: posMaster.orgChild2Id, orgChild3Id: posMaster.orgChild3Id, orgChild4Id: posMaster.orgChild4Id, - posMasterNoPrefix: posMaster.posMasterNoPrefix, - posMasterNo: posMaster.posMasterNo, - posMasterNoSuffix: posMaster.posMasterNoSuffix, + posMasterNoPrefix: posMaster.posMasterNoPrefix ? posMaster.posMasterNoPrefix : null, + posMasterNo: posMaster.posMasterNo ? posMaster.posMasterNo : null, + posMasterNoSuffix: posMaster.posMasterNoSuffix ? posMaster.posMasterNoSuffix : null, reason: posMaster.reason, fullNameCurrentHolder: posMaster.current_holder == null