Commit 37ba2511 by Torkel Ödegaard

fixed error handling in default dashboard route

parent d03949a7
...@@ -54,9 +54,9 @@ function (angular, store) { ...@@ -54,9 +54,9 @@ function (angular, store) {
$http.get("app/dashboards/default.json?" + new Date().getTime()).then(function(result) { $http.get("app/dashboards/default.json?" + new Date().getTime()).then(function(result) {
var dashboard = angular.fromJson(result.data); var dashboard = angular.fromJson(result.data);
$scope.initDashboard(dashboard, $scope); $scope.initDashboard(dashboard, $scope);
},function(err) { },function() {
$scope.initDashboard({}, $scope); $scope.initDashboard({}, $scope);
$scope.appEvent('alert-error', ['Load dashboard failed', err]); $scope.appEvent('alert-error', ['Load dashboard failed', '']);
}); });
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment