Query history: Fix default value when no config (#51129)

* Query history: Fix default value in setting.go

* Update for frontend

* Remove frontend update
pull/51164/head^2
Ivana Huckova 3 years ago committed by GitHub
parent bc7ed4baab
commit 62e55d530d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/setting/setting.go

@ -973,7 +973,7 @@ func (cfg *Cfg) Load(args CommandLineArgs) error {
ProfileEnabled = profile.Key("enabled").MustBool(true)
queryHistory := iniFile.Section("query_history")
cfg.QueryHistoryEnabled = queryHistory.Key("enabled").MustBool(false)
cfg.QueryHistoryEnabled = queryHistory.Key("enabled").MustBool(true)
panelsSection := iniFile.Section("panels")
cfg.DisableSanitizeHtml = panelsSection.Key("disable_sanitize_html").MustBool(false)

Loading…
Cancel
Save