Sfoglia il codice sorgente

Merge pull request #2824 from overleaf/jel-file-count

Exclude deleted files from getFullCount

GitOrigin-RevId: 2d01dc7aee50e8a237fe4c7dc9bbaae27ac53cc1
Jessica Lawshe 6 anni fa
parent
commit
a0c9b12204

+ 1 - 1
services/web/frontend/js/ide/file-tree/FileTreeManager.js

@@ -170,7 +170,7 @@ define([
     getFullCount() {
       const entities = []
       this.forEachEntity(function(e) {
-        return entities.push(e)
+        if (!e.deleted) entities.push(e)
       })
       return entities.length
     }