Explorar el Código

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

Torkel Ödegaard hace 9 años
padre
commit
a27d72b437
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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
         // update graph yaxes changes
         panelUpgrades.push(function(panel) {
         panelUpgrades.push(function(panel) {
           if (panel.type !== 'graph') { return; }
           if (panel.type !== 'graph') { return; }
+          if (!panel.grid) { return; }
+
           if (!panel.yaxes) {
           if (!panel.yaxes) {
             panel.yaxes = [
             panel.yaxes = [
               {
               {