Merge pull request #259 from brecert/theme-fix

This commit is contained in:
Paul Makles
2021-09-17 22:38:20 +01:00
committed by GitHub

View File

@@ -283,7 +283,8 @@ export function getBaseTheme(name: string): Theme {
return PRESETS[name] return PRESETS[name]
} }
const themes = getState().themes // TODO: properly initialize `themes` in state instead of letting it be undefined
const themes = getState().themes ?? {}
if (name in themes) { if (name in themes) {
const { theme } = themes[name]; const { theme } = themes[name];