mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
null check on id
This commit is contained in:
parent
9f969bba4d
commit
e4e14602f1
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ module.exports = HttpController =
|
|||
|
||||
_buildDocView: (doc) ->
|
||||
return {
|
||||
_id: doc._id.toString()
|
||||
_id: doc._id?.toString()
|
||||
lines: doc.lines
|
||||
rev: doc.rev
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue