From 1ad8d37c4ae23e5f2178cddba22905d3cbb159be Mon Sep 17 00:00:00 2001 From: Bartek Dybowski Date: Fri, 1 Mar 2024 15:43:19 +0100 Subject: [PATCH] quick fix Co-authored-by: Aimane Chnaif <96077027+aimane-chnaif@users.noreply.github.com> --- src/pages/workspace/WorkspaceMembersPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/WorkspaceMembersPage.tsx b/src/pages/workspace/WorkspaceMembersPage.tsx index f63472ae09f8..718f2b6d9ad2 100644 --- a/src/pages/workspace/WorkspaceMembersPage.tsx +++ b/src/pages/workspace/WorkspaceMembersPage.tsx @@ -417,7 +417,7 @@ function WorkspaceMembersPage({policyMembers, personalDetails, route, policy, se }); } - if (selectedEmployees.find((employee) => policyMembers?.[employee].role === CONST.POLICY.ROLE.USER)) { + if (selectedEmployees.find((employee) => policyMembers?.[employee]?.role === CONST.POLICY.ROLE.USER)) { options.push({ text: translate('workspace.people.makeAdmin'), value: CONST.POLICY.MEMBERS_BULK_ACTION_TYPES.MAKE_ADMIN,