1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 13:53:34 +00:00

Use refCount: true for shareReplay (#9005)

This commit is contained in:
Thomas Rittson
2024-05-03 05:48:57 +10:00
committed by GitHub
parent e774089d0e
commit 6db90dc141

View File

@@ -136,7 +136,7 @@ export class GroupAddEditComponent implements OnInit, OnDestroy {
private destroy$ = new Subject<void>();
private orgCollections$ = from(this.collectionAdminService.getAll(this.organizationId)).pipe(
shareReplay({ refCount: false }),
shareReplay({ refCount: true, bufferSize: 1 }),
);
private get orgMembers$(): Observable<Array<AccessItemView & { userId: UserId }>> {