mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #2329 from overleaf/bg-fix-exception-in-exports-handler
avoid exception when rootDoc is null GitOrigin-RevId: caf37a78ef35285cf638322f943696aeceb10da6
This commit is contained in:
parent
3f34098c03
commit
45cdb94f8a
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ module.exports = ExportsHandler = self = {
|
|||
}
|
||||
|
||||
const { project, rootDoc, user, historyVersion } = results
|
||||
if (rootDoc[1] == null) {
|
||||
if (!rootDoc || rootDoc[1] == null) {
|
||||
err = new Error('cannot export project without root doc')
|
||||
logger.warn({ err, project_id })
|
||||
return callback(err)
|
||||
|
|
Loading…
Reference in a new issue