1
0
mirror of https://github.com/bitwarden/web synced 2025-12-18 09:13:17 +00:00

unsubscribe from queryparams observable

This commit is contained in:
Kyle Spearrin
2018-12-20 10:06:40 -05:00
parent 7efd81191a
commit 5804c57236
8 changed files with 36 additions and 27 deletions

View File

@@ -92,10 +92,11 @@ export class CreateOrganizationComponent implements OnInit {
}
ngOnInit() {
this.route.queryParams.subscribe(async (qParams) => {
const queryParamsSub = this.route.queryParams.subscribe(async (qParams) => {
if (qParams.plan === 'families' || qParams.plan === 'teams' || qParams.plan === 'enterprise') {
this.plan = qParams.plan;
}
queryParamsSub.unsubscribe();
});
}