mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-04 23:27:13 +00:00
null check entity in filetree for orderByFoldersFirst
This commit is contained in:
parent
893ff85521
commit
52f3248869
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ define [
|
|||
)
|
||||
|
||||
$scope.orderByFoldersFirst = (entity) ->
|
||||
return '0' if entity.type == "folder"
|
||||
return '0' if entity?.type == "folder"
|
||||
return '1'
|
||||
|
||||
$scope.startRenamingSelected = () ->
|
||||
|
|
Loading…
Reference in a new issue