allow overleaf.history.id to be blank

This commit is contained in:
Hayden Faulds 2017-10-27 16:52:06 +01:00
parent 19bc145ff4
commit 4ca73f6b53

View file

@ -29,7 +29,7 @@ module.exports = ProjectCreationHandler =
else
HistoryController.initializeProject (error, history) ->
return callback(error) if error?
ProjectCreationHandler._createBlankProject owner_id, projectName, history.overleaf_id, callback
ProjectCreationHandler._createBlankProject owner_id, projectName, history?.overleaf_id, callback
_createBlankProject : (owner_id, projectName, projectHistoryId, callback = (error, project) ->)->
rootFolder = new Folder {'name':'rootFolder'}