Append alert state from the correct object

This commit is contained in:
Łukasz Mierzwa
2017-07-01 20:28:51 -07:00
parent cb69029c4f
commit 0a06d58e22

View File

@@ -50,7 +50,7 @@ func DedupAlerts() []models.AlertGroup {
// update map
alerts[alertLFP] = a
// and append alert state to the slice
alertStates[alertLFP] = append(alertStates[alertLFP], a.State)
alertStates[alertLFP] = append(alertStates[alertLFP], alert.State)
} else {
alerts[alertLFP] = models.Alert(alert)
// seed alert state slice