Skip to content

Commit

Permalink
CB-4663 fix: page freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
Wroud committed Feb 22, 2024
1 parent 379e0cb commit e7003e0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions webapp/packages/core-authentication/src/UsersResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,15 +185,13 @@ export class UsersResource extends CachedMapResource<string, AdminUser, UserReso
}

async setAuthRole(userId: string, authRole?: string, skipUpdate?: boolean): Promise<void> {
await this.performUpdate(userId, undefined, async () => {
await this.graphQLService.sdk.setUserAuthRole({ userId, authRole });
await this.graphQLService.sdk.setUserAuthRole({ userId, authRole });

const user = this.get(userId);
const user = this.get(userId);

if (user) {
user.authRole = authRole;
}
});
if (user) {
user.authRole = authRole;
}

if (!skipUpdate) {
this.markOutdated(userId);
Expand Down

0 comments on commit e7003e0

Please sign in to comment.