1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 05:43:41 +00:00

Fix race condition when adding item from collections list (#4639)

This commit is contained in:
Thomas Rittson
2023-02-06 11:53:14 +10:00
committed by GitHub
parent 8a9e59094a
commit e62d0b2987

View File

@@ -161,6 +161,9 @@ export class AddEditComponent implements OnInit, OnDestroy {
}
async ngOnInit() {
this.writeableCollections = await this.loadCollections();
this.canUseReprompt = await this.passwordRepromptService.enabled();
this.policyService
.policyAppliesToActiveUser$(PolicyType.PersonalOwnership)
.pipe(
@@ -201,10 +204,6 @@ export class AddEditComponent implements OnInit, OnDestroy {
if (!this.allowPersonal) {
this.organizationId = this.ownershipOptions[0].value;
}
this.writeableCollections = await this.loadCollections();
this.canUseReprompt = await this.passwordRepromptService.enabled();
}
async load() {