瀏覽代碼

fix(alert_tab): dont add dup notifications to repeater

closes #6233
bergquist 9 年之前
父節點
當前提交
5a39bf5c58
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/app/features/alerting/alert_tab_ctrl.ts

+ 1 - 1
public/app/features/alerting/alert_tab_ctrl.ts

@@ -156,7 +156,7 @@ export class AlertTabCtrl {
 
 
     for (let addedNotification of alert.notifications) {
     for (let addedNotification of alert.notifications) {
       var model = _.find(this.notifications, {id: addedNotification.id});
       var model = _.find(this.notifications, {id: addedNotification.id});
-      if (model) {
+      if (model && model.isDefault === false) {
         model.iconClass = this.getNotificationIcon(model.type);
         model.iconClass = this.getNotificationIcon(model.type);
         this.alertNotifications.push(model);
         this.alertNotifications.push(model);
       }
       }