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:
parent
01bd2b495a
commit
9bf9cf67f2
@ -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 }),
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user