1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

call init functions rather than super

This commit is contained in:
Kyle Spearrin
2019-03-06 14:31:50 -05:00
parent 142496edc1
commit aa290c50ec
6 changed files with 6 additions and 7 deletions

View File

@@ -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();
}