1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-22 16:29:09 +01:00

[EC-746] Call BaseAddEditComponent.ngOnInit on Desktop AddEditComponent (#4044)

This commit is contained in:
Rui Tomé 2022-11-11 17:47:47 +00:00 committed by GitHub
parent 2d6174af4a
commit 7dae65daee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,6 +61,7 @@ export class AddEditComponent extends BaseAddEditComponent implements OnChanges,
}
async ngOnInit() {
await super.ngOnInit();
this.broadcasterService.subscribe(BroadcasterSubscriptionId, async (message: any) => {
this.ngZone.run(() => {
switch (message.command) {
@ -75,7 +76,6 @@ export class AddEditComponent extends BaseAddEditComponent implements OnChanges,
}
async ngOnChanges() {
await super.init();
await this.load();
}