瀏覽代碼

Remove alert thresholds on panel duplicate, issue #9178 (#9257)

Alexander Zobnin 8 年之前
父節點
當前提交
54f0650321
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      public/app/features/dashboard/model.ts

+ 3 - 0
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);