Fix Storybook background/grid selection (#125961)

This commit is contained in:
Nathan L Smith 2022-03-19 09:29:49 -05:00 committed by GitHub
parent f5533008dd
commit 64a25db639
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ export function registerThemeSwitcherAddon() {
'eui-theme-css'
) as HTMLLinkElement | null;
if (stylesheet) {
if (stylesheet && globals.euiTheme) {
stylesheet.href = `kbn-ui-shared-deps-npm.${globals.euiTheme}.css`;
}
});