Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
8230279932
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      src/app/directives/dashUpload.js

+ 1 - 0
src/app/directives/dashUpload.js

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