Просмотр исходного кода

fix(alert_tab): dont add dup notifications to repeater

closes #6233
bergquist 9 лет назад
Родитель
Сommit
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) {
       var model = _.find(this.notifications, {id: addedNotification.id});
-      if (model) {
+      if (model && model.isDefault === false) {
         model.iconClass = this.getNotificationIcon(model.type);
         this.alertNotifications.push(model);
       }