1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-28 02:43:04 +01:00

[PM-16098] Avoid re-sorting remainingCiphers$ as it was redundant

This commit is contained in:
Shane Melton 2024-12-24 14:19:21 -08:00
parent 01bd2b495a
commit 9bf9cf67f2
No known key found for this signature in database

View File

@ -192,11 +192,6 @@ export class VaultPopupItemsService {
(cipher) => !autoFillCiphers.includes(cipher) && !favoriteCiphers.includes(cipher),
),
),
withLatestFrom(this._hasSearchText$),
map(([ciphers, hasSearchText]) =>
// Do not sort alphabetically when there is search text, default to the search service scoring
hasSearchText ? ciphers : ciphers.sort(this.cipherService.getLocaleSortingFunction()),
),
shareReplay({ refCount: false, bufferSize: 1 }),
);