Przeglądaj źródła

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.
Jason Wilder 11 lat temu
rodzic
commit
8230279932
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/app/directives/dashUpload.js

+ 1 - 0
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);
               });
             };