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

Exclude deleted files from getFullCount

GitOrigin-RevId: 2d01dc7aee50e8a237fe4c7dc9bbaae27ac53cc1
This commit is contained in:
Jessica Lawshe 2020-05-12 09:23:25 -05:00 committed by Copybot
parent f298787565
commit a0c9b12204

View file

@ -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
}