mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-14 11:17:19 +03:00
Handle invalid theme in ui state (#1504)
This commit is contained in:
parent
910091f1f1
commit
8c707b4e0c
@ -12,7 +12,7 @@ const useCurrentTheme = () => {
|
||||
return prefersLightMode ? themes.LightTheme : themes.DarkTheme
|
||||
}
|
||||
const themeName =
|
||||
state.theme ||
|
||||
Object.keys(themes).find((t) => t === state.theme) ||
|
||||
Object.keys(themes).find(
|
||||
(t) => themes[t].themeName === config.defaultTheme
|
||||
) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user