mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
null checks on query param sub
This commit is contained in:
@@ -26,7 +26,9 @@ export class AttachmentsComponent extends BaseAttachmentsComponent {
|
||||
const queryParamsSub = this.route.queryParams.subscribe(async (params) => {
|
||||
this.cipherId = params.cipherId;
|
||||
await super.ngOnInit();
|
||||
queryParamsSub.unsubscribe();
|
||||
if (queryParamsSub != null) {
|
||||
queryParamsSub.unsubscribe();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user