mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 21:31:36 +02:00
added null check when looking for deletedByExternalDataSource
This commit is contained in:
@@ -83,7 +83,7 @@ define [
|
||||
$scope.$on "project:joined", () ->
|
||||
return if inited
|
||||
inited = true
|
||||
if $scope.project.deletedByExternalDataSource
|
||||
if $scope?.project?.deletedByExternalDataSource
|
||||
ide.showGenericMessageModal("Project Renamed or Deleted", """
|
||||
This project has either been renamed or deleted by an external data source such as Dropbox.
|
||||
We don't want to delete your data on ShareLaTeX, so this project still contains your history and collaborators.
|
||||
|
||||
@@ -17,7 +17,7 @@ define [
|
||||
# We need this here as well as in FileTreeController
|
||||
# since the file-entity diretive creates a new scope
|
||||
# that doesn't inherit from previous scopes.
|
||||
return '0' if entity.type == "folder"
|
||||
return '0' if entity?.type == "folder"
|
||||
return '1'
|
||||
|
||||
$scope.openNewDocModal = () ->
|
||||
|
||||
Reference in New Issue
Block a user