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:
Barak Kakoun
2020-03-26 19:30:31 +01:00
committed by GitHub
parent c191bf64aa
commit 0c9e50c7da
+2 -2
View File
@@ -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() {