Chore: removing some type assertions (#85839)

* fix some type assertions in loops

* some more cleanup

* some alerting fixes

* put comments in correct place to ignore rule

* couple more

* undo SilencesFilter changes
This commit is contained in:
Ashley Harrison
2024-04-10 14:54:31 +01:00
committed by GitHub
parent 96f49bfaee
commit 3c69de6be5
31 changed files with 106 additions and 151 deletions

View File

@@ -59,7 +59,7 @@ export class HistoryWrapper implements LocationService {
const currentLocation = this.history.location;
const newQuery = this.getSearchObject();
for (const key of Object.keys(query)) {
for (const key in query) {
// removing params with null | undefined
if (query[key] === null || query[key] === undefined) {
delete newQuery[key];