From cd9cbe5e16d44f2ef5feda448660773c62d1e793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agn=C3=A8s=20Toulet?= <35176601+AgnesToulet@users.noreply.github.com> Date: Wed, 13 May 2020 15:08:49 +0200 Subject: [PATCH] SharedPreferences: fixes so UI Theme can be set back to Default (#24628) --- .../app/core/components/SharedPreferences/SharedPreferences.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 });