From e54618e7dedc80fa4b924f7445273b1dc951739a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Alby?= Date: Tue, 14 Apr 2020 14:09:21 +0200 Subject: [PATCH] Merge pull request #2739 from overleaf/ns-jpa-project-count Ensure trashed project are not counted in uncategorized count GitOrigin-RevId: 0d25ee0bb4fe08c68a83e72536edb9a92f058533 --- services/web/frontend/js/main/project-list/project-list.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/js/main/project-list/project-list.js b/services/web/frontend/js/main/project-list/project-list.js index 40287a8a73..031fc7e5be 100644 --- a/services/web/frontend/js/main/project-list/project-list.js +++ b/services/web/frontend/js/main/project-list/project-list.js @@ -32,7 +32,8 @@ define(['../../base', './services/project-list'], function(App) { $scope.projects.filter( project => (project.tags == null || project.tags.length === 0) && - !project.archived + !project.archived && + !project.trashed ).length, newVal => ($scope.nUntagged = newVal) )