Skip to content

Commit

Permalink
rm setWorkspaceMemberErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Jan 17, 2023
1 parent a3a7337 commit 2237a6b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/libs/actions/Policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,18 +426,6 @@ function setWorkspaceErrors(policyID, errors) {
Onyx.merge(`${ONYXKEYS.COLLECTION.POLICY}${policyID}`, {errors});
}

/**
* @param {String} policyID
* @param {Object} errors
*/
function setWorkspaceMemberErrors(policyID, errors) {
if (!allPolicies[`${ONYXKEYS.COLLECTION.POLICY}${policyID}`]) {
return;
}

Onyx.merge(`${ONYXKEYS.COLLECTION.POLICY_MEMBER_LIST}${policyID}`, errors);
}

/**
* @param {String} policyID
* @param {String} customUnitID
Expand Down Expand Up @@ -1006,5 +994,4 @@ export {
openWorkspaceMembersPage,
openWorkspaceInvitePage,
removeWorkspace,
setWorkspaceMemberErrors,
};

0 comments on commit 2237a6b

Please sign in to comment.