Alerting: Fix missing dashboard/panelID links in annotations (#60926)
Assign thru ref
This commit is contained in:
1 parent
f0ee3ac80a
commit
b88b8bc291
1 file changed
+3
-3
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user