diff --git a/apps/web/src/app/admin-console/organizations/members/members.component.ts b/apps/web/src/app/admin-console/organizations/members/members.component.ts index 2a84efd3320..a9cfd79ad60 100644 --- a/apps/web/src/app/admin-console/organizations/members/members.component.ts +++ b/apps/web/src/app/admin-console/organizations/members/members.component.ts @@ -13,7 +13,6 @@ import { Observable, shareReplay, switchMap, - withLatestFrom, tap, } from "rxjs"; @@ -310,10 +309,13 @@ export class MembersComponent extends BaseMembersComponent ), ); - const decryptedCollections$ = this.accountService.activeAccount$.pipe( - getUserId, - switchMap((userId) => this.keyService.orgKeys$(userId)), - withLatestFrom(response), + const decryptedCollections$ = combineLatest([ + this.accountService.activeAccount$.pipe( + getUserId, + switchMap((userId) => this.keyService.orgKeys$(userId)), + ), + response, + ]).pipe( switchMap(([orgKeys, collections]) => this.collectionService.decryptMany$(collections, orgKeys), ),