make appeditor & preview resilient to no css

This commit is contained in:
Ruben Fiszel
2024-01-21 18:48:35 +01:00
parent 90e1516bea
commit dfa472aadf
2 changed files with 6 additions and 2 deletions
@@ -412,7 +412,9 @@
css = currentAppStore.theme.css
} else if (currentAppStore.theme.type === 'path' && currentAppStore.theme?.path) {
let loadedCss = await getTheme($workspaceStore!, currentAppStore.theme.path)
css = loadedCss.value
if (loadedCss) {
css = loadedCss.value
}
}
lastTheme = JSON.stringify(currentAppStore.theme)
}
@@ -133,7 +133,9 @@
css = currentAppStore.theme.css
} else if (currentAppStore.theme.type === 'path' && currentAppStore.theme.path) {
let loadedCss = await getTheme(workspace, currentAppStore.theme.path)
css = loadedCss.value
if (loadedCss) {
css = loadedCss.value
}
}
}