fix(alert_tab): dont add dup notifications to repeater

closes #6233
This commit is contained in:
bergquist 2016-10-12 11:27:06 +02:00
parent 0bae12e4ae
commit 5a39bf5c58

View File

@ -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);
} }