mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
fix logic for filtering filters (#16509)
This commit is contained in:
@@ -346,9 +346,7 @@ export class VaultFilterComponent implements OnInit, OnDestroy {
|
||||
.map((r) => r.cipherType);
|
||||
|
||||
const toExclude = [...excludeTypes, ...restrictedForUser];
|
||||
return this.allTypeFilters.filter(
|
||||
(f) => typeof f.type === "string" || !toExclude.includes(f.type),
|
||||
);
|
||||
return this.allTypeFilters.filter((f) => !toExclude.includes(f.type));
|
||||
}),
|
||||
switchMap((allowed) => this.vaultFilterService.buildTypeTree(allFilter, allowed)),
|
||||
distinctUntilChanged(),
|
||||
|
||||
Reference in New Issue
Block a user