Просмотр исходного кода

fixed error handling in default dashboard route

Torkel Ödegaard 11 лет назад
Родитель
Сommit
37ba2511d5
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/app/routes/backend/dashboard.js

+ 2 - 2
src/app/routes/backend/dashboard.js

@@ -54,9 +54,9 @@ function (angular, store) {
         $http.get("app/dashboards/default.json?" + new Date().getTime()).then(function(result) {
           var dashboard = angular.fromJson(result.data);
           $scope.initDashboard(dashboard, $scope);
-        },function(err) {
+        },function() {
           $scope.initDashboard({}, $scope);
-          $scope.appEvent('alert-error', ['Load dashboard failed', err]);
+          $scope.appEvent('alert-error', ['Load dashboard failed', '']);
         });
         return;
       }