Fixed small issue where dashboard search did not work after loading dashboard and it does not exist, now shows a valid dashboard

This commit is contained in:
Torkel Ödegaard 2014-09-03 09:12:59 +02:00
parent 953eec7326
commit 3d202c2ef9

View File

@ -34,9 +34,9 @@ function (angular) {
.then(function(dashboard) {
$scope.emitAppEvent('setup-dashboard', dashboard);
}).then(null, function(error) {
$scope.emitAppEvent('setup-dashboard', { title: 'Grafana'});
alertSrv.set('Error', error, 'error');
});
});
});