mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 09:05:45 -06:00
SharedPreferences: fixes so UI Theme can be set back to Default (#24628)
This commit is contained in:
parent
c1b057a57d
commit
cd9cbe5e16
@ -100,7 +100,7 @@ export class SharedPreferences extends PureComponent<Props, State> {
|
||||
};
|
||||
|
||||
onThemeChanged = (theme: SelectableValue<string>) => {
|
||||
if (!theme || !theme.value) {
|
||||
if (!theme || typeof theme.value !== 'string') {
|
||||
return;
|
||||
}
|
||||
this.setState({ theme: theme.value });
|
||||
|
Loading…
Reference in New Issue
Block a user