mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
null check on id
This commit is contained in:
@@ -66,7 +66,7 @@ module.exports = HttpController =
|
||||
|
||||
_buildDocView: (doc) ->
|
||||
return {
|
||||
_id: doc._id.toString()
|
||||
_id: doc._id?.toString()
|
||||
lines: doc.lines
|
||||
rev: doc.rev
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user