mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
remove post trim
This commit is contained in:
parent
3b3ceee16e
commit
46fe8ed596
@ -277,13 +277,6 @@ func (hs *HTTPServer) PostDashboard(c *models.ReqContext, cmd models.SaveDashboa
|
|||||||
var err error
|
var err error
|
||||||
cmd.OrgId = c.OrgId
|
cmd.OrgId = c.OrgId
|
||||||
cmd.UserId = c.UserId
|
cmd.UserId = c.UserId
|
||||||
trimDefaults := c.QueryBoolWithDefault("trimdefaults", false)
|
|
||||||
if trimDefaults && !hs.LoadSchemaService.IsDisabled() {
|
|
||||||
cmd.Dashboard, err = hs.LoadSchemaService.DashboardApplyDefaults(cmd.Dashboard)
|
|
||||||
if err != nil {
|
|
||||||
return response.Error(500, "Error while applying default value to the dashboard json", err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if cmd.FolderUid != "" {
|
if cmd.FolderUid != "" {
|
||||||
folders := dashboards.NewFolderService(c.OrgId, c.SignedInUser, hs.SQLStore)
|
folders := dashboards.NewFolderService(c.OrgId, c.SignedInUser, hs.SQLStore)
|
||||||
folder, err := folders.GetFolderByUID(cmd.FolderUid)
|
folder, err := folders.GetFolderByUID(cmd.FolderUid)
|
||||||
|
Loading…
Reference in New Issue
Block a user