mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-08 00:29:04 +02:00
null check entity in filetree for orderByFoldersFirst
This commit is contained in:
@@ -31,7 +31,7 @@ define [
|
||||
)
|
||||
|
||||
$scope.orderByFoldersFirst = (entity) ->
|
||||
return '0' if entity.type == "folder"
|
||||
return '0' if entity?.type == "folder"
|
||||
return '1'
|
||||
|
||||
$scope.startRenamingSelected = () ->
|
||||
|
||||
Reference in New Issue
Block a user