From ab35a49dbe71d616689534eb6b552a773fdc5776 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 11 Sep 2018 08:45:29 -0400 Subject: [PATCH] null check collection ids filter --- jslib | 2 +- src/app/vault/vault.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jslib b/jslib index eb48abbcf6..d0ad865060 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit eb48abbcf659ae20b2d0627467bccb56c272132e +Subproject commit d0ad8650605ec506704ed76f13f40fd4d33cffcd diff --git a/src/app/vault/vault.component.ts b/src/app/vault/vault.component.ts index 1edc716f5a..651dbf03ca 100644 --- a/src/app/vault/vault.component.ts +++ b/src/app/vault/vault.component.ts @@ -409,7 +409,7 @@ export class VaultComponent implements OnInit, OnDestroy { async filterCollection(collectionId: string) { this.ciphersComponent.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();