1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

null checks on query param sub

This commit is contained in:
Kyle Spearrin
2019-01-16 23:30:39 -05:00
parent c6e324bf16
commit 7653ce2234
10 changed files with 28 additions and 10 deletions

View File

@@ -132,7 +132,9 @@ export class GroupingsComponent extends BaseGroupingsComponent implements OnInit
if (!this.syncService.syncInProgress || restoredScopeState) {
window.setTimeout(() => this.popupUtils.setContentScrollY(window, this.state.scrollY), 0);
}
queryParamsSub.unsubscribe();
if (queryParamsSub != null) {
queryParamsSub.unsubscribe();
}
});
}