add null check in on project

This commit is contained in:
Henry Oswald 2014-12-12 10:27:14 +00:00
parent 5c7d77a853
commit bd77d0e020

View file

@ -18,7 +18,7 @@ module.exports = EditorHttpController =
privilegeLevel: privilegeLevel
}
# Only show the 'renamed or deleted' message once
if project.deletedByExternalDataSource
if project?.deletedByExternalDataSource
ProjectDeleter.unmarkAsDeletedByExternalSource project_id
restoreDoc: (req, res, next) ->