Merge pull request #2739 from overleaf/ns-jpa-project-count

Ensure trashed project are not counted in uncategorized count

GitOrigin-RevId: 0d25ee0bb4fe08c68a83e72536edb9a92f058533
This commit is contained in:
Timothée Alby 2020-04-14 14:09:21 +02:00 committed by Copybot
parent dba294377c
commit e54618e7de

View file

@ -32,7 +32,8 @@ define(['../../base', './services/project-list'], function(App) {
$scope.projects.filter( $scope.projects.filter(
project => project =>
(project.tags == null || project.tags.length === 0) && (project.tags == null || project.tags.length === 0) &&
!project.archived !project.archived &&
!project.trashed
).length, ).length,
newVal => ($scope.nUntagged = newVal) newVal => ($scope.nUntagged = newVal)
) )