1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 13:23:34 +00:00

Fix Vault Loading (#13484)

This commit is contained in:
Justin Baur
2025-02-21 19:01:49 -05:00
committed by GitHub
parent b4bfacf6e3
commit f1af23dc1f

View File

@@ -94,8 +94,12 @@ export class VaultPopupItemsService {
runInsideAngular(this.ngZone), runInsideAngular(this.ngZone),
tap(() => this._ciphersLoading$.next()), tap(() => this._ciphersLoading$.next()),
waitUntilSync(this.syncService), waitUntilSync(this.syncService),
switchMap(() => Utils.asyncToObservable(() => this.cipherService.getAllDecrypted(userId))), switchMap(() =>
withLatestFrom(this.cipherService.failedToDecryptCiphers$(userId)), combineLatest([
Utils.asyncToObservable(() => this.cipherService.getAllDecrypted(userId)),
this.cipherService.failedToDecryptCiphers$(userId),
]),
),
map(([ciphers, failedToDecryptCiphers]) => [...failedToDecryptCiphers, ...ciphers]), map(([ciphers, failedToDecryptCiphers]) => [...failedToDecryptCiphers, ...ciphers]),
), ),
), ),