Skip to content

Commit

Permalink
Merge pull request #30084 from bernhardoj/fix/30078
Browse files Browse the repository at this point in the history
Fix crash after deleting a workspace

(cherry picked from commit feb3e79)
  • Loading branch information
dangrous authored and OSBotify committed Oct 20, 2023
1 parent 11060d4 commit 07845c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/PolicyUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ const isPolicyAdmin = (policy) => lodashGet(policy, 'role') === CONST.POLICY.ROL
* @param {Object} policies
* @returns {Boolean}
*/
const isPolicyMember = (policyID, policies) => _.some(policies, (policy) => policy.id === policyID);
const isPolicyMember = (policyID, policies) => _.some(policies, (policy) => lodashGet(policy, 'id') === policyID);

/**
* @param {Object} policyMembers
Expand Down

0 comments on commit 07845c1

Please sign in to comment.