Merge pull request #2816 from overleaf/jpa-fix-project-list-for-ce

[misc] fix project list for installations w/o affiliations feature

GitOrigin-RevId: 2fa2cf7ac5418e04ab876c7fffcd9614fe7af0b3
This commit is contained in:
nate stemen 2020-05-11 08:08:34 -04:00 committed by Copybot
parent 4349e85444
commit 186adf8410

View file

@ -411,7 +411,7 @@ const ProjectController = {
},
userAffiliations(cb) {
if (!Features.hasFeature('affiliations')) {
return cb(null, null)
return cb(null, [])
}
getUserAffiliations(userId, (error, affiliations) => {
if (error && error instanceof V1ConnectionError) {