diff --git a/public/app/core/components/SharedPreferences/SharedPreferences.tsx b/public/app/core/components/SharedPreferences/SharedPreferences.tsx index e2daf583156..85dbf9306cf 100644 --- a/public/app/core/components/SharedPreferences/SharedPreferences.tsx +++ b/public/app/core/components/SharedPreferences/SharedPreferences.tsx @@ -100,7 +100,7 @@ export class SharedPreferences extends PureComponent { }; onThemeChanged = (theme: SelectableValue) => { - if (!theme || !theme.value) { + if (!theme || typeof theme.value !== 'string') { return; } this.setState({ theme: theme.value });