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

* Query history: Fix default value in setting.go

* Update for frontend

* Remove frontend update

(cherry picked from commit 62e55d530d)

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2022-06-22 17:08:23 +02:00
committed by GitHub
co-authored by Ivana Huckova
parent 99cea9f98b
commit 00165544bd
+1 -1
View File
@@ -972,7 +972,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)