mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-04 14:26:38 +00:00
Add in null array checks
This commit is contained in:
parent
45fd924c49
commit
3ddfa607e1
1 changed files with 2 additions and 2 deletions
|
@ -36,11 +36,11 @@ define [
|
|||
owner.set("privileges", "owner")
|
||||
members.add owner
|
||||
|
||||
for rawMember in rawAttributes.members
|
||||
for rawMember in rawAttributes.members or []
|
||||
member = User.findOrBuild rawMember._id, rawMember
|
||||
members.add member
|
||||
|
||||
for doc in rawAttributes.deletedDocs
|
||||
for doc in rawAttributes.deletedDocs or []
|
||||
doc.deleted = true
|
||||
|
||||
attributes.deletedDocs = new Folder({
|
||||
|
|
Loading…
Reference in a new issue