fix the issue of annotation endpoint (#52907)

This commit is contained in:
ying-jeanne 2022-07-27 15:35:27 -05:00 committed by GitHub
parent 6c3efb0c88
commit 017e6771ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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()