Themes: Temporary fix for initialising saved grafanacon themes (#100810)

temporary fix for initialising saved grafanacon themes
This commit is contained in:
Ashley Harrison
2025-02-17 16:39:04 +00:00
committed by GitHub
parent 3bb3a74ac1
commit 7a6f4ced06
+2 -1
View File
@@ -250,7 +250,8 @@ func (hs *HTTPServer) getThemeForIndexData(themePrefId string, themeURLParam str
if pref.IsValidThemeID(themePrefId) {
theme := pref.GetThemeByID(themePrefId)
if !theme.IsExtra || hs.Features.IsEnabledGlobally(featuremgmt.FlagExtraThemes) {
// TODO refactor
if !theme.IsExtra || hs.Features.IsEnabledGlobally(featuremgmt.FlagExtraThemes) || hs.Features.IsEnabledGlobally(featuremgmt.FlagGrafanaconThemes) {
return theme
}
}