mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -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
|
||||
}
|
||||
# Only show the 'renamed or deleted' message once
|
||||
if project.deletedByExternalDataSource
|
||||
if project?.deletedByExternalDataSource
|
||||
ProjectDeleter.unmarkAsDeletedByExternalSource project_id
|
||||
|
||||
restoreDoc: (req, res, next) ->
|
||||
|
|
Loading…
Reference in a new issue