From 8230279932df05c5f1345093c707cbda604b9ee8 Mon Sep 17 00:00:00 2001 From: Jason Wilder Date: Wed, 11 Feb 2015 15:09:28 -0700 Subject: [PATCH] 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. --- src/app/directives/dashUpload.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/directives/dashUpload.js b/src/app/directives/dashUpload.js index 889438dffc9..d9f8e3e4ae9 100644 --- a/src/app/directives/dashUpload.js +++ b/src/app/directives/dashUpload.js @@ -24,6 +24,7 @@ function (angular, kbn) { return; } var title = kbn.slugifyForUrl(window.grafanaImportDashboard.title); + window.grafanaImportDashboard.id = null; $location.path('/dashboard/import/' + title); }); };