Skip to content

Commit

Permalink
revert: asRole update
Browse files Browse the repository at this point in the history
  • Loading branch information
eswarclynn authored Sep 22, 2023
1 parent 98c808a commit c06edac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class PolicyChangeManager {
const localPeer = this.store.getLocalPeer();
if (localPeer?.role && localPeer.role.name !== params.name) {
const newRole = this.store.getPolicyForRole(params.name);
const oldRole = localPeer.asRole || localPeer.role;
const oldRole = localPeer.role;
localPeer.updateRole(newRole);
if (newRole.name === localPeer.asRole?.name) {
delete localPeer.asRole;
Expand Down

0 comments on commit c06edac

Please sign in to comment.