Assign new ID to when importing dashboard via frontend

Fixes a panic: interface conversion: interface is string, not float64
when importing a dashboard that has a non-float ID.
This commit is contained in:
Jason Wilder 2015-02-11 15:09:28 -07:00
parent a6df991b76
commit 8230279932

View File

@ -24,6 +24,7 @@ function (angular, kbn) {
return;
}
var title = kbn.slugifyForUrl(window.grafanaImportDashboard.title);
window.grafanaImportDashboard.id = null;
$location.path('/dashboard/import/' + title);
});
};