Przeglądaj źródła

fix(threshold): remove old threshold properties

Torkel Ödegaard 9 lat temu
rodzic
commit
2639c38912
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      public/app/features/dashboard/dashboardSrv.js

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

@@ -514,6 +514,12 @@ function (angular, $, _, moment) {
               panel.thresholds.push(t1);
               panel.thresholds.push(t1);
             }
             }
           }
           }
+
+          delete panel.grid.threshold1;
+          delete panel.grid.threshold1Color;
+          delete panel.grid.threshold2;
+          delete panel.grid.threshold2Color;
+          delete panel.grid.thresholdLine;
         });
         });
       }
       }