Sfoglia il codice sorgente

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

Torkel Ödegaard 9 anni fa
parent
commit
a27d72b437
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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 = [
               {
               {