From 67cc291def53eb6c09193d798e622c6f61f876b6 Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Thu, 7 Jul 2022 10:40:33 -0400 Subject: [PATCH] fix CI --- .storybook/preview.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.storybook/preview.js b/.storybook/preview.js index 5504e6fbc..54410e869 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -32,7 +32,8 @@ const withThemeProvider = (Story, context) => { const theme = context.globals.theme var storyBody = document.getElementById('story-body') - theme === 'dark' + + storyBody && theme === 'dark' ? storyBody.classList.add('dark') : storyBody.classList.remove('dark')