From 54f0650321e009c64b3c72991d1bdfdbdc6ca641 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Fri, 15 Sep 2017 14:34:31 +0300 Subject: [PATCH] Remove alert thresholds on panel duplicate, issue #9178 (#9257) --- public/app/features/dashboard/model.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/app/features/dashboard/model.ts b/public/app/features/dashboard/model.ts index 01c805694a6..f407ec3dd4e 100644 --- a/public/app/features/dashboard/model.ts +++ b/public/app/features/dashboard/model.ts @@ -238,6 +238,9 @@ export class DashboardModel { delete newPanel.repeatIteration; delete newPanel.repeatPanelId; delete newPanel.scopedVars; + if (newPanel.alert) { + delete newPanel.thresholds; + } delete newPanel.alert; row.addPanel(newPanel);