Quellcode durchsuchen

fix(): fixed issue with scripted dashboard example, fixes #4579

Torkel Ödegaard vor 9 Jahren
Ursprung
Commit
a27d72b437
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      public/app/features/dashboard/dashboardSrv.js

+ 2 - 0
public/app/features/dashboard/dashboardSrv.js

@@ -428,6 +428,8 @@ function (angular, $, _, moment) {
         // update graph yaxes changes
         panelUpgrades.push(function(panel) {
           if (panel.type !== 'graph') { return; }
+          if (!panel.grid) { return; }
+
           if (!panel.yaxes) {
             panel.yaxes = [
               {