mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
fixed error handling in default dashboard route
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user