themebuilder: update themes manually in themebuilder

This commit is contained in:
Abdullah Atta
2023-08-11 09:51:43 +05:00
parent c6e90142bb
commit 60ff7b2f97
2 changed files with 2 additions and 0 deletions

View File

@@ -37,6 +37,7 @@ export function App() {
(async () => {
try {
setIsLoading(true);
await useStore.getState().init();
const theme = from_pr
? await loadThemeFromPullRequest(from_pr)
: from_url

View File

@@ -51,6 +51,7 @@ export function BaseThemeProvider(
const cssTheme = useMemo(() => themeToCSS(theme), [theme]);
useEffect(() => {
if (IS_THEME_BUILDER) return;
(async () => {
await useThemeStore.getState().init();
})();