null check entity in filetree for orderByFoldersFirst

This commit is contained in:
Henry Oswald 2015-04-14 17:05:13 +01:00
parent 893ff85521
commit 52f3248869

View file

@ -31,7 +31,7 @@ define [
)
$scope.orderByFoldersFirst = (entity) ->
return '0' if entity.type == "folder"
return '0' if entity?.type == "folder"
return '1'
$scope.startRenamingSelected = () ->