From 59d83bc55ad0aee53f74a97f04e6917cfd2c83c0 Mon Sep 17 00:00:00 2001 From: Juan Cabanas Date: Thu, 13 Jun 2024 10:39:35 -0300 Subject: [PATCH] PublicDashboards: Fix error message when deleting (#89166) --- pkg/services/publicdashboards/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/publicdashboards/api/api.go b/pkg/services/publicdashboards/api/api.go index 2aa8dea58d9..84433fa6598 100644 --- a/pkg/services/publicdashboards/api/api.go +++ b/pkg/services/publicdashboards/api/api.go @@ -297,7 +297,7 @@ func (api *Api) DeletePublicDashboard(c *contextmodel.ReqContext) response.Respo return response.Err(err) } - return response.JSON(http.StatusOK, nil) + return response.Empty(http.StatusOK) } // Copied from pkg/api/metrics.go