From 017e6771ce786a72618c66def7c95afcc8f4e5c4 Mon Sep 17 00:00:00 2001 From: ying-jeanne <74549700+ying-jeanne@users.noreply.github.com> Date: Wed, 27 Jul 2022 15:35:27 -0500 Subject: [PATCH] fix the issue of annotation endpoint (#52907) --- pkg/api/annotations.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/annotations.go b/pkg/api/annotations.go index cf928f7e114..0e1a5d1075c 100644 --- a/pkg/api/annotations.go +++ b/pkg/api/annotations.go @@ -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()