[PM-7059] Use decryptedCollections$ observable instead of async getAllDecrypted call (#8488)

This commit is contained in:
Shane Melton 2024-03-26 10:29:50 -07:00 committed by GitHub
parent 69530241d1
commit 1e75f24671
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ export class VaultComponent implements OnInit, OnDestroy {
}); });
const filter$ = this.routedVaultFilterService.filter$; const filter$ = this.routedVaultFilterService.filter$;
const allCollections$ = Utils.asyncToObservable(() => this.collectionService.getAllDecrypted()); const allCollections$ = this.collectionService.decryptedCollections$;
const nestedCollections$ = allCollections$.pipe( const nestedCollections$ = allCollections$.pipe(
map((collections) => getNestedCollectionTree(collections)), map((collections) => getNestedCollectionTree(collections)),
); );