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

* Query history: Fix default value in setting.go

* Update for frontend

* Remove frontend update
This commit is contained in:
Ivana Huckova
2022-06-21 14:57:44 +02:00
committed by GitHub
parent bc7ed4baab
commit 62e55d530d

View File

@@ -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)