mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
add null check in on project
This commit is contained in:
parent
5c7d77a853
commit
bd77d0e020
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ module.exports = EditorHttpController =
|
||||||
privilegeLevel: privilegeLevel
|
privilegeLevel: privilegeLevel
|
||||||
}
|
}
|
||||||
# Only show the 'renamed or deleted' message once
|
# Only show the 'renamed or deleted' message once
|
||||||
if project.deletedByExternalDataSource
|
if project?.deletedByExternalDataSource
|
||||||
ProjectDeleter.unmarkAsDeletedByExternalSource project_id
|
ProjectDeleter.unmarkAsDeletedByExternalSource project_id
|
||||||
|
|
||||||
restoreDoc: (req, res, next) ->
|
restoreDoc: (req, res, next) ->
|
||||||
|
|
Loading…
Reference in a new issue