mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
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:
parent
4349e85444
commit
186adf8410
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ const ProjectController = {
|
||||||
},
|
},
|
||||||
userAffiliations(cb) {
|
userAffiliations(cb) {
|
||||||
if (!Features.hasFeature('affiliations')) {
|
if (!Features.hasFeature('affiliations')) {
|
||||||
return cb(null, null)
|
return cb(null, [])
|
||||||
}
|
}
|
||||||
getUserAffiliations(userId, (error, affiliations) => {
|
getUserAffiliations(userId, (error, affiliations) => {
|
||||||
if (error && error instanceof V1ConnectionError) {
|
if (error && error instanceof V1ConnectionError) {
|
||||||
|
|
Loading…
Reference in a new issue