0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

Immediately clear errors if a theme successfully loads

This commit is contained in:
Trevor Buckner
2025-02-13 15:51:22 -05:00
parent d8d672fada
commit 50bda9455f

View File

@@ -55,7 +55,8 @@ const fetchThemeBundle = async (obj, renderer, theme)=>{
themeBundle.joinedStyles = themeBundle.styles.map((style)=>`<style>${style}</style>`).join('\n\n');
obj.setState((prevState)=>({
...prevState,
themeBundle : themeBundle
themeBundle : themeBundle,
error : null
}));
};