Alerting: Fix missing dashboard/panelID links in annotations (#60926)

Assign thru ref
This commit is contained in:
Alexander Weaver
2023-01-03 14:12:27 -06:00
committed by GitHub
parent f0ee3ac80a
commit b88b8bc291
@@ -102,9 +102,9 @@ func (h *AnnotationStateHistorian) recordAnnotationsSync(ctx context.Context, pa
return
}
for _, i := range annotations {
i.DashboardId = dashID
i.PanelId = panel.panelID
for i := range annotations {
annotations[i].DashboardId = dashID
annotations[i].PanelId = panel.panelID
}
}