1
0
mirror of https://github.com/bitwarden/web synced 2026-01-04 17:43:47 +00:00

null check collection ids filter

This commit is contained in:
Kyle Spearrin
2018-09-11 08:46:04 -04:00
parent d14a8bc301
commit 8c9705eec0
4 changed files with 4 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ export class CollectionsComponent implements OnInit, OnDestroy {
this.selectAll(false);
if (this.collectionIds != null) {
this.collections.forEach((c) => {
(c as any).checked = this.collectionIds.indexOf(c.id) > -1;
(c as any).checked = this.collectionIds != null && this.collectionIds.indexOf(c.id) > -1;
});
}
}