mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
null checks on query param sub
This commit is contained in:
parent
47bda7d789
commit
650fc6aa27
2
jslib
2
jslib
@ -1 +1 @@
|
|||||||
Subproject commit cb7336c0e8ae1f0f74c76a4d6704555cc7440a3b
|
Subproject commit cbcf0adad5f313c1f37232311ddce318365911b3
|
@ -37,7 +37,9 @@ export class LoginComponent extends BaseLoginComponent {
|
|||||||
{ route: '/settings/create-organization', qParams: { plan: qParams.org } });
|
{ route: '/settings/create-organization', qParams: { plan: qParams.org } });
|
||||||
}
|
}
|
||||||
await super.ngOnInit();
|
await super.ngOnInit();
|
||||||
queryParamsSub.unsubscribe();
|
if (queryParamsSub != null) {
|
||||||
|
queryParamsSub.unsubscribe();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,7 +44,9 @@ export class RegisterComponent extends BaseRegisterComponent {
|
|||||||
this.stateService.save('loginRedirect',
|
this.stateService.save('loginRedirect',
|
||||||
{ route: '/settings/create-organization', qParams: { plan: qParams.org } });
|
{ route: '/settings/create-organization', qParams: { plan: qParams.org } });
|
||||||
}
|
}
|
||||||
queryParamsSub.unsubscribe();
|
if (queryParamsSub != null) {
|
||||||
|
queryParamsSub.unsubscribe();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,9 @@ export class CollectionsComponent implements OnInit {
|
|||||||
await this.load();
|
await this.load();
|
||||||
const queryParamsSub = this.route.queryParams.subscribe(async (qParams) => {
|
const queryParamsSub = this.route.queryParams.subscribe(async (qParams) => {
|
||||||
this.searchText = qParams.search;
|
this.searchText = qParams.search;
|
||||||
queryParamsSub.unsubscribe();
|
if (queryParamsSub != null) {
|
||||||
|
queryParamsSub.unsubscribe();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -58,7 +58,9 @@ export class GroupsComponent implements OnInit {
|
|||||||
await this.load();
|
await this.load();
|
||||||
const queryParamsSub = this.route.queryParams.subscribe(async (qParams) => {
|
const queryParamsSub = this.route.queryParams.subscribe(async (qParams) => {
|
||||||
this.searchText = qParams.search;
|
this.searchText = qParams.search;
|
||||||
queryParamsSub.unsubscribe();
|
if (queryParamsSub != null) {
|
||||||
|
queryParamsSub.unsubscribe();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,9 @@ export class PeopleComponent implements OnInit {
|
|||||||
this.events(user[0]);
|
this.events(user[0]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
queryParamsSub.unsubscribe();
|
if (queryParamsSub != null) {
|
||||||
|
queryParamsSub.unsubscribe();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -112,7 +112,9 @@ export class VaultComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
queryParamsSub.unsubscribe();
|
if (queryParamsSub != null) {
|
||||||
|
queryParamsSub.unsubscribe();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -96,7 +96,9 @@ export class CreateOrganizationComponent implements OnInit {
|
|||||||
if (qParams.plan === 'families' || qParams.plan === 'teams' || qParams.plan === 'enterprise') {
|
if (qParams.plan === 'families' || qParams.plan === 'teams' || qParams.plan === 'enterprise') {
|
||||||
this.plan = qParams.plan;
|
this.plan = qParams.plan;
|
||||||
}
|
}
|
||||||
queryParamsSub.unsubscribe();
|
if (queryParamsSub != null) {
|
||||||
|
queryParamsSub.unsubscribe();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,7 +141,9 @@ export class VaultComponent implements OnInit, OnDestroy {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
queryParamsSub.unsubscribe();
|
if (queryParamsSub != null) {
|
||||||
|
queryParamsSub.unsubscribe();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user