mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-24 17:51:51 +02:00
Merge pull request #2421 from overleaf/fix-user-projects-json
Fix exception for project.trashed.find GitOrigin-RevId: 18b32b0a5badd29893e6a98c9915737bfd8cef2a
This commit is contained in:
committed by
sharelatex
parent
93fe30a451
commit
2cf76ba39a
@@ -302,8 +302,10 @@ const ProjectController = {
|
||||
if (err != null) {
|
||||
return next(err)
|
||||
}
|
||||
|
||||
// _buildProjectList already converts archived/trashed to booleans so isArchivedOrTrashed should not be used here
|
||||
projects = ProjectController._buildProjectList(projects, userId)
|
||||
.filter(p => !ProjectHelper.isArchivedOrTrashed(p, userId))
|
||||
.filter(p => !(p.archived || p.trashed))
|
||||
.filter(p => !p.isV1Project)
|
||||
.map(p => ({ _id: p.id, name: p.name, accessLevel: p.accessLevel }))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user