1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

Exclude deleted items from any/all reports (#700)

This commit is contained in:
Chad Scharf
2020-11-24 12:36:40 -05:00
committed by GitHub
parent 4625b44703
commit 2db1684b3c
5 changed files with 6 additions and 5 deletions

View File

@@ -45,7 +45,8 @@ export class InactiveTwoFactorReportComponent extends CipherReportComponent impl
const promises: Promise<void>[] = [];
const docs = new Map<string, string>();
allCiphers.forEach((c) => {
if (c.type !== CipherType.Login || (c.login.totp != null && c.login.totp !== '') || !c.login.hasUris) {
if (c.type !== CipherType.Login || (c.login.totp != null && c.login.totp !== '') || !c.login.hasUris ||
c.isDeleted) {
return;
}
for (let i = 0; i < c.login.uris.length; i++) {