Exclude deleted items from folder counts (#1555)

This commit is contained in:
Jake Fink 2021-10-04 08:33:23 -04:00 committed by GitHub
parent a9a4fa56c1
commit c0783cd162
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -485,6 +485,11 @@ namespace Bit.App.Pages
} }
} }
if (c.IsDeleted)
{
continue;
}
var fId = c.FolderId ?? "none"; var fId = c.FolderId ?? "none";
if (_folderCounts.ContainsKey(fId)) if (_folderCounts.ContainsKey(fId))
{ {