Do not crash if files cannot be loaded yet
This commit is contained in:
@@ -236,9 +236,9 @@ function FileTreeController($scope, $translate, $timeout, Client) {
|
||||
$scope.busyRefresh = true;
|
||||
|
||||
Client.filesGet($scope.backendId, $scope.backendType, $scope.cwd, 'data', function (error, result) {
|
||||
if (error) return Client.error(error);
|
||||
if (error && error.statusCode !== 404) return Client.error(error);
|
||||
|
||||
$scope.entries = result.entries;
|
||||
$scope.entries = result ? result.entries : [];
|
||||
amendIcons();
|
||||
sort();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user