From 2639c38912b1b7d441d6c927c401eec0a8038e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 10 Aug 2016 20:44:39 +0200 Subject: [PATCH] fix(threshold): remove old threshold properties --- public/app/features/dashboard/dashboardSrv.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public/app/features/dashboard/dashboardSrv.js b/public/app/features/dashboard/dashboardSrv.js index cbbaae5cd56..cfba7f2dccd 100644 --- a/public/app/features/dashboard/dashboardSrv.js +++ b/public/app/features/dashboard/dashboardSrv.js @@ -514,6 +514,12 @@ function (angular, $, _, moment) { panel.thresholds.push(t1); } } + + delete panel.grid.threshold1; + delete panel.grid.threshold1Color; + delete panel.grid.threshold2; + delete panel.grid.threshold2Color; + delete panel.grid.thresholdLine; }); }