mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Storybook] Fixes Storybook is endlessly refreshed. (#120216)
This commit is contained in:
parent
70a1b3892a
commit
8b76213809
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ export function ThemeSwitcher() {
|
|||
const [globals, updateGlobals] = useGlobals();
|
||||
const selectedTheme = globals.euiTheme;
|
||||
|
||||
if (!selectedTheme || selectedTheme === defaultTheme) {
|
||||
if (!selectedTheme) {
|
||||
updateGlobals({ euiTheme: defaultTheme });
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue