1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

null checks on query param sub

This commit is contained in:
Kyle Spearrin
2019-01-16 23:30:32 -05:00
parent 47bda7d789
commit 650fc6aa27
9 changed files with 25 additions and 9 deletions

View File

@@ -37,7 +37,9 @@ export class LoginComponent extends BaseLoginComponent {
{ route: '/settings/create-organization', qParams: { plan: qParams.org } });
}
await super.ngOnInit();
queryParamsSub.unsubscribe();
if (queryParamsSub != null) {
queryParamsSub.unsubscribe();
}
});
}