1
0
mirror of https://github.com/bitwarden/web synced 2025-12-22 11:13:40 +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

@@ -152,7 +152,7 @@ export class VaultComponent implements OnInit, OnDestroy {
if (collectionId === 'unassigned') {
return c.collectionIds == null || c.collectionIds.length === 0;
} else {
return c.collectionIds.indexOf(collectionId) > -1;
return c.collectionIds != null && c.collectionIds.indexOf(collectionId) > -1;
}
};
if (load) {