mirror of
https://github.com/bitwarden/browser
synced 2024-12-26 18:04:07 +01:00
[AC-2351] Call filterCollections within the organizations$ subscription to avoid race condition (#8498)
This commit is contained in:
parent
96d274b332
commit
3f6a567122
@ -62,6 +62,7 @@ export class ShareComponent implements OnInit, OnDestroy {
|
||||
this.organizations$.pipe(takeUntil(this._destroy)).subscribe((orgs) => {
|
||||
if (this.organizationId == null && orgs.length > 0) {
|
||||
this.organizationId = orgs[0].id;
|
||||
this.filterCollections();
|
||||
}
|
||||
});
|
||||
|
||||
@ -69,8 +70,6 @@ export class ShareComponent implements OnInit, OnDestroy {
|
||||
this.cipher = await cipherDomain.decrypt(
|
||||
await this.cipherService.getKeyForCipherKeyDecryption(cipherDomain),
|
||||
);
|
||||
|
||||
this.filterCollections();
|
||||
}
|
||||
|
||||
filterCollections() {
|
||||
|
Loading…
Reference in New Issue
Block a user