mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
Fix null search service checking (#372)
* Do not reset Search Index if SearchService is null * Check lambda exists * Fix Chalk
This commit is contained in:
@@ -296,7 +296,7 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
async getAllDecrypted(): Promise<CipherView[]> {
|
||||
if (this.decryptedCipherCache != null) {
|
||||
const userId = await this.userService.getUserId();
|
||||
if ((this.searchService().indexedEntityId ?? userId) !== userId)
|
||||
if (this.searchService != null && (this.searchService().indexedEntityId ?? userId) !== userId)
|
||||
{
|
||||
await this.searchService().indexCiphers(userId, this.decryptedCipherCache);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user