Просмотр исходного кода

Merge pull request #2654 from overleaf/sk-ns-fix-tag-count-for-real

Ensure tag count doesn't include trashed projects

GitOrigin-RevId: d1ccafe8b8553378c8d25504494d790ee342fedb
nate stemen 6 лет назад
Родитель
Сommit
818d19bd69
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/web/frontend/js/main/project-list/tag-controllers.js

+ 1 - 1
services/web/frontend/js/main/project-list/tag-controllers.js

@@ -31,7 +31,7 @@ define(['base', 'ide/colors/ColorManager'], function(App, ColorManager) {
         if (!project) return acc
 
         // Ignore archived projects as they are not shown in the filter
-        if (!project.archived) {
+        if (!(project.archived || project.trashed)) {
           return acc + 1
         } else {
           return acc