mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 13:32:15 +08:00
LibraryPanels: Fixes connections after dashboard import (#34461)
This commit is contained in:
@ -226,6 +226,11 @@ func (hs *HTTPServer) ImportDashboard(c *models.ReqContext, apiCmd dtos.ImportDa
|
||||
return hs.dashboardSaveErrorToApiResponse(err)
|
||||
}
|
||||
|
||||
err = hs.LibraryPanelService.ImportDashboard(c, apiCmd.Dashboard, dashInfo.DashboardId)
|
||||
if err != nil {
|
||||
return response.Error(500, "Error while connecting library panels", err)
|
||||
}
|
||||
|
||||
return response.JSON(200, dashInfo)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user