1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +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

@@ -189,7 +189,7 @@ export class VaultComponent implements OnInit, OnDestroy {
async filterCollection(collectionId: string) {
this.ciphersComponent.showAddNew = false;
this.groupingsComponent.searchPlaceholder = this.i18nService.t('searchCollection');
await this.ciphersComponent.load((c) => c.collectionIds.indexOf(collectionId) > -1);
await this.ciphersComponent.load((c) => c.collectionIds != null && c.collectionIds.indexOf(collectionId) > -1);
this.clearFilters();
this.collectionId = collectionId;
this.go();