fix: fixed build failure

This commit is contained in:
Torkel Ödegaard 2017-12-11 10:52:38 +01:00 committed by Johannes Schill
parent 8624414657
commit e88bd67d5b

View File

@ -43,7 +43,7 @@ function (angular, moment, _, $, kbn, dateMath, impressionSrv) {
});
} else {
promise = backendSrv.getDashboard($routeParams.type, $routeParams.slug)
.then(result => {
.then(function(result) {
if (result.meta.isFolder) {
$rootScope.appEvent("alert-error", ['Dashboard not found']);
throw new Error("Dashboard not found");