All endpoints deleted (#23113)
because id is never defined on notification object, the condition 'n.id === an.id' is equal to 'undefined === undefined' which is always true. that code is responsible for the situation when you delete one endpoint and it removes all of them.
This commit is contained in:
@@ -168,8 +168,8 @@ export class AlertTabCtrl {
|
||||
removeNotification(an: any) {
|
||||
// remove notifiers refeered to by id and uid to support notifiers added
|
||||
// before and after we added support for uid
|
||||
_.remove(this.alert.notifications, (n: any) => n.uid === an.uid || n.id === an.id);
|
||||
_.remove(this.alertNotifications, (n: any) => n.uid === an.uid || n.id === an.id);
|
||||
_.remove(this.alert.notifications, (n: any) => n.uid === an.uid);
|
||||
_.remove(this.alertNotifications, (n: any) => n.uid === an.uid);
|
||||
}
|
||||
|
||||
addAlertRuleTag() {
|
||||
|
||||
Reference in New Issue
Block a user