From 328b5b800184e19214a86946cdf9b7e1ec748fa7 Mon Sep 17 00:00:00 2001 From: harid Date: Thu, 29 Jan 2026 09:34:12 +0700 Subject: [PATCH] =?UTF-8?q?Fix=20=E0=B9=80=E0=B8=A1=E0=B8=99=E0=B8=B9?= =?UTF-8?q?=E0=B8=AA=E0=B8=B4=E0=B8=97=E0=B8=98=E0=B8=B4=E0=B9=8C=E0=B9=81?= =?UTF-8?q?=E0=B8=81=E0=B9=89=E0=B9=84=E0=B8=82=E0=B8=82=E0=B9=89=E0=B8=AD?= =?UTF-8?q?=E0=B8=A1=E0=B8=B9=E0=B8=A5=E0=B8=97=E0=B8=B0=E0=B9=80=E0=B8=9A?= =?UTF-8?q?=E0=B8=B5=E0=B8=A2=E0=B8=99=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=A7?= =?UTF-8?q?=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=95=E0=B8=B3=E0=B9=81=E0=B8=AB?= =?UTF-8?q?=E0=B8=99=E0=B9=88=E0=B8=87/=E0=B9=80=E0=B8=87=E0=B8=B4?= =?UTF-8?q?=E0=B8=99=E0=B9=80=E0=B8=94=E0=B8=B7=E0=B8=AD=E0=B8=99=20Error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PermissionProfileController.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/controllers/PermissionProfileController.ts b/src/controllers/PermissionProfileController.ts index 4503dc3c..9f565828 100644 --- a/src/controllers/PermissionProfileController.ts +++ b/src/controllers/PermissionProfileController.ts @@ -448,13 +448,13 @@ export class PermissionProfileController extends Controller { orgRootId: _data.orgRootId, isCheck: _data.isCheck, isEdit: _data.isEdit, - orgNew: _data.orgRootTree.orgRootName, - avatar: _data.profileTree.avatar, - avatarName: _data.profileTree.avatarName, - prefix: _data.profileTree.prefix, - rank: _data.profileTree.rank, - firstName: _data.profileTree.firstName, - lastName: _data.profileTree.lastName, + orgNew: _data.orgRootTree?.orgRootName, + avatar: _data.profileTree?.avatar, + avatarName: _data.profileTree?.avatarName, + prefix: _data.profileTree?.prefix, + rank: _data.profileTree?.rank, + firstName: _data.profileTree?.firstName, + lastName: _data.profileTree?.lastName, org: (_child4 == null ? "" : _child4 + "\n") + (_child3 == null ? "" : _child3 + "\n") + @@ -462,10 +462,10 @@ export class PermissionProfileController extends Controller { (_child1 == null ? "" : _child1 + "\n") + (_root == null ? "" : _root), posNo: shortName, - position: _data.profileTree.position, - posType: _data.profileTree.posType == null ? null : _data.profileTree.posType.posTypeName, + position: _data.profileTree?.position, + posType: _data.profileTree?.posType == null ? null : _data.profileTree?.posType.posTypeName, posLevel: - _data.profileTree.posLevel == null ? null : _data.profileTree.posLevel.posLevelName, + _data.profileTree?.posLevel == null ? null : _data.profileTree?.posLevel.posLevelName, }; }), );