1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

searchCiphersBasic

This commit is contained in:
Kyle Spearrin
2018-08-13 14:28:10 -04:00
parent 364192b27a
commit bdb2efd770
3 changed files with 30 additions and 22 deletions

View File

@@ -67,10 +67,12 @@ export class CipherService implements CipherServiceAbstraction {
}
set decryptedCipherCache(value: CipherView[]) {
this._decryptedCipherCache = value;
if (value == null) {
this.searchService().clearIndex();
} else {
this.searchService().indexCiphers();
if (this.searchService != null) {
if (value == null) {
this.searchService().clearIndex();
} else {
this.searchService().indexCiphers();
}
}
}