From 9bf9cf67f2b5ca448ca18bbefbafaa217382069d Mon Sep 17 00:00:00 2001 From: Shane Melton Date: Tue, 24 Dec 2024 14:19:21 -0800 Subject: [PATCH] [PM-16098] Avoid re-sorting remainingCiphers$ as it was redundant --- .../src/vault/popup/services/vault-popup-items.service.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/apps/browser/src/vault/popup/services/vault-popup-items.service.ts b/apps/browser/src/vault/popup/services/vault-popup-items.service.ts index 9d986ce5a8..1c19a9d8d1 100644 --- a/apps/browser/src/vault/popup/services/vault-popup-items.service.ts +++ b/apps/browser/src/vault/popup/services/vault-popup-items.service.ts @@ -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 }), );