mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Check that alert notification with id already exists in notification settings
This commit is contained in:
@@ -141,7 +141,9 @@ export class AlertTabCtrl {
|
||||
iconClass: this.getNotificationIcon(model.type),
|
||||
isDefault: false,
|
||||
});
|
||||
this.alert.notifications.push({ uid: model.uid });
|
||||
if (!_.find(this.alert.notifications, { id: model.id})) {
|
||||
this.alert.notifications.push({ uid: model.uid });
|
||||
}
|
||||
|
||||
// reset plus button
|
||||
this.addNotificationSegment.value = this.uiSegmentSrv.newPlusButton().value;
|
||||
|
||||
Reference in New Issue
Block a user