Skip to content

Commit

Permalink
[PM-8831] Hide trashed items from new vault popup lists (#9633)
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-melton authored Jun 13, 2024
1 parent d266868 commit 2333059
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Injectable } from "@angular/core";
import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
import { FormBuilder } from "@angular/forms";
import {
Observable,
combineLatest,
distinctUntilChanged,
map,
Observable,
startWith,
switchMap,
tap,
Expand Down Expand Up @@ -104,6 +104,11 @@ export class VaultPopupListFiltersService {
map(
(filters) => (ciphers: CipherView[]) =>
ciphers.filter((cipher) => {
// Vault popup lists never shows deleted ciphers
if (cipher.isDeleted) {
return false;
}

if (filters.cipherType !== null && cipher.type !== filters.cipherType) {
return false;
}
Expand Down

0 comments on commit 2333059

Please sign in to comment.