diff --git a/shared/helpers.js b/shared/helpers.js index 17e2a2e93..c53fdb5ec 100644 --- a/shared/helpers.js +++ b/shared/helpers.js @@ -138,7 +138,7 @@ const fetchThemeBundle = async (setError, setThemeBundle, renderer, theme)=>{ const themeBundle = res.body; themeBundle.joinedStyles = themeBundle.styles.map((style)=>``).join('\n\n'); setThemeBundle(themeBundle); - setError(null); + if(setError) { setError(null); } }; const debugTextMismatch = (clientTextRaw, serverTextRaw, label)=>{