Fix dark mode issue

This commit is contained in:
Julien Nahum 2024-01-16 15:32:52 +01:00
parent 0fda0c3fbc
commit 5e6f4d78a1
1 changed files with 4 additions and 2 deletions

View File

@ -117,8 +117,10 @@ const loadForm = async (setup=false) => {
onMounted(() => {
loadForm()
handleDarkMode(form.value.dark_mode)
handleTransparentMode(form.value.transparent_background)
if (form.value) {
handleDarkMode(form.value?.dark_mode)
handleTransparentMode(form.value?.transparent_background)
}
})
await loadForm(true)