mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: bracket properly to ensure name is set correctly (#99660)
bracket properly to ensure name is set
This commit is contained in:
parent
058d3946b7
commit
05905a5069
@ -41,7 +41,7 @@ export function createTheme(options: NewThemeOptions = {}): GrafanaTheme2 {
|
|||||||
const visualization = createVisualizationColors(colors);
|
const visualization = createVisualizationColors(colors);
|
||||||
|
|
||||||
const theme = {
|
const theme = {
|
||||||
name: (name ?? colors.mode === 'dark') ? 'Dark' : 'Light',
|
name: name ?? (colors.mode === 'dark' ? 'Dark' : 'Light'),
|
||||||
isDark: colors.mode === 'dark',
|
isDark: colors.mode === 'dark',
|
||||||
isLight: colors.mode === 'light',
|
isLight: colors.mode === 'light',
|
||||||
colors,
|
colors,
|
||||||
|
Loading…
Reference in New Issue
Block a user