mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-05 09:00:07 +00:00
Set invites to be an empty array if missing
This commit is contained in:
parent
40cb7e4590
commit
36d969e6e6
1 changed files with 4 additions and 1 deletions
|
@ -15,7 +15,10 @@ module.exports = ProjectEditorHandler =
|
|||
deletedByExternalDataSource : project.deletedByExternalDataSource || false
|
||||
deletedDocs: project.deletedDocs
|
||||
members: []
|
||||
invites: invites || []
|
||||
invites: invites
|
||||
|
||||
if !result.invites?
|
||||
result.invites = []
|
||||
|
||||
{owner, ownerFeatures, members} = @buildOwnerAndMembersViews(members)
|
||||
result.owner = owner
|
||||
|
|
Loading…
Reference in a new issue