mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
call init functions rather than super
This commit is contained in:
@@ -28,7 +28,7 @@ export class FolderAddEditComponent extends BaseFolderAddEditComponent {
|
||||
if (params.folderId) {
|
||||
this.folderId = params.folderId;
|
||||
}
|
||||
await super.ngOnInit();
|
||||
await this.init();
|
||||
if (queryParamsSub != null) {
|
||||
queryParamsSub.unsubscribe();
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ export class AttachmentsComponent extends BaseAttachmentsComponent {
|
||||
async ngOnInit() {
|
||||
const queryParamsSub = this.route.queryParams.subscribe(async (params) => {
|
||||
this.cipherId = params.cipherId;
|
||||
await super.ngOnInit();
|
||||
await this.init();
|
||||
if (queryParamsSub != null) {
|
||||
queryParamsSub.unsubscribe();
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ export class CollectionsComponent extends BaseCollectionsComponent {
|
||||
});
|
||||
const queryParamsSub = this.route.queryParams.subscribe(async (params) => {
|
||||
this.cipherId = params.cipherId;
|
||||
await super.ngOnInit();
|
||||
await this.load();
|
||||
if (queryParamsSub != null) {
|
||||
queryParamsSub.unsubscribe();
|
||||
}
|
||||
|
||||
@@ -28,8 +28,7 @@ export class PasswordHistoryComponent extends BasePasswordHistoryComponent {
|
||||
} else {
|
||||
this.close();
|
||||
}
|
||||
|
||||
await super.ngOnInit();
|
||||
await this.init();
|
||||
if (queryParamsSub != null) {
|
||||
queryParamsSub.unsubscribe();
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ export class ShareComponent extends BaseShareComponent {
|
||||
});
|
||||
const queryParamsSub = this.route.queryParams.subscribe(async (params) => {
|
||||
this.cipherId = params.cipherId;
|
||||
await super.ngOnInit();
|
||||
await this.load();
|
||||
if (queryParamsSub != null) {
|
||||
queryParamsSub.unsubscribe();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user