docs: fix theme editor page (#44232)

This commit is contained in:
MadCcc
2023-08-15 15:57:04 +08:00
committed by GitHub
parent 4fb448ffac
commit 3f0e74702e

View File

@@ -44,11 +44,6 @@ const CustomTheme = () => {
const storedConfig = localStorage.getItem(ANT_DESIGN_V5_THEME_EDITOR_THEME);
if (storedConfig) {
const themeConfig = JSON.parse(storedConfig);
const originThemeConfig = {
json: themeConfig,
text: undefined,
};
setThemeConfigContent(originThemeConfig);
setTheme(themeConfig);
}
}, []);