mirror of
https://github.com/bitwarden/browser
synced 2026-01-07 02:53:28 +00:00
null checks on query param sub
This commit is contained in:
@@ -56,7 +56,9 @@ export class CollectionsComponent implements OnInit {
|
||||
await this.load();
|
||||
const queryParamsSub = this.route.queryParams.subscribe(async (qParams) => {
|
||||
this.searchText = qParams.search;
|
||||
queryParamsSub.unsubscribe();
|
||||
if (queryParamsSub != null) {
|
||||
queryParamsSub.unsubscribe();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -58,7 +58,9 @@ export class GroupsComponent implements OnInit {
|
||||
await this.load();
|
||||
const queryParamsSub = this.route.queryParams.subscribe(async (qParams) => {
|
||||
this.searchText = qParams.search;
|
||||
queryParamsSub.unsubscribe();
|
||||
if (queryParamsSub != null) {
|
||||
queryParamsSub.unsubscribe();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -89,7 +89,9 @@ export class PeopleComponent implements OnInit {
|
||||
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();
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user