fix(frontend): fix theme make default (#2304)

This commit is contained in:
Faton Ramadani
2023-09-19 10:12:47 +02:00
committed by GitHub
parent be790992a0
commit 8888e7fd6c
@@ -59,13 +59,25 @@
const theme = await getTheme($workspaceStore!, path)
await updateTheme($workspaceStore!, DEFAULT_THEME, {
value: theme.value
value: {
value: theme.value ?? '',
name: theme.name
}
})
await updateTheme($workspaceStore!, path, {
value: defaultTheme.value
value: {
value: defaultTheme.value ?? '',
name: defaultTheme.name
}
})
stopPreview()
$app.theme = {
type: 'path',
path: DEFAULT_THEME
}
dispatch('reloadThemes')
}