fix the issue of annotation endpoint (#52907)

This commit is contained in:
ying-jeanne
2022-07-27 16:35:27 -04:00
committed by GitHub
parent 6c3efb0c88
commit 017e6771ce
+1 -1
View File
@@ -52,7 +52,7 @@ func (hs *HTTPServer) GetAnnotations(c *models.ReqContext) response.Response {
if err != nil {
return response.Error(http.StatusBadRequest, "Invalid dashboard UID in the request", err)
}
query.DashboardId = dq.Id
query.DashboardId = dq.Result.Id
}
repo := annotations.GetRepository()