mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
unsub from queryParams observable
This commit is contained in:
@@ -36,7 +36,7 @@ export class AddEditComponent extends BaseAddEditComponent {
|
||||
async ngOnInit() {
|
||||
await super.ngOnInit();
|
||||
this.showAttachments = !this.platformUtilsService.isEdge();
|
||||
this.route.queryParams.subscribe(async (params) => {
|
||||
const queryParamsSub = this.route.queryParams.subscribe(async (params) => {
|
||||
if (params.cipherId) {
|
||||
this.cipherId = params.cipherId;
|
||||
}
|
||||
@@ -65,6 +65,7 @@ export class AddEditComponent extends BaseAddEditComponent {
|
||||
this.cipher.login.uris[0].uri = params.uri;
|
||||
}
|
||||
}
|
||||
queryParamsSub.unsubscribe();
|
||||
});
|
||||
|
||||
window.setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user