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:
@@ -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
|
||||
}));
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user