Просмотр исходного кода

fix(alerting): minor notification fix

Torkel Ödegaard 9 лет назад
Родитель
Сommit
c2eeb6dda0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      public/app/features/alerting/notifications_list_ctrl.ts

+ 1 - 1
public/app/features/alerting/notifications_list_ctrl.ts

@@ -23,7 +23,7 @@ export class AlertNotificationsListCtrl {
   deleteNotification(id) {
     this.backendSrv.delete(`/api/alert-notifications/${id}`).then(() => {
       this.notifications = this.notifications.filter(notification => {
-        return notification.id !== notificationId;
+        return notification.id !== id;
       });
     });
   }