mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fixed error handling in default dashboard route
This commit is contained in:
parent
d03949a735
commit
37ba2511d5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user