Commit 0c9e50c7 by Barak Kakoun Committed by GitHub

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.
parent c191bf64
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment