wait until config is loaded to check for default preset. Fix #320
This commit is contained in:
parent
b70cd473e7
commit
27476a39eb
1 changed files with 2 additions and 2 deletions
|
|
@ -389,7 +389,7 @@ onUpdated(async () => {
|
|||
form.value.preset = config.app.default_preset
|
||||
}
|
||||
|
||||
if (form.value?.preset && !config.presets.some(p => p.name === form.value.preset)) {
|
||||
if (config.isLoaded() && form.value?.preset && !config.presets.some(p => p.name === form.value.preset)) {
|
||||
form.value.preset = config.app.default_preset
|
||||
}
|
||||
})
|
||||
|
|
@ -401,7 +401,7 @@ onMounted(async () => {
|
|||
form.value.preset = config.app.default_preset
|
||||
}
|
||||
|
||||
if (form.value?.preset && !config.presets.some(p => p.name === form.value.preset)) {
|
||||
if (config.isLoaded() && form.value?.preset && !config.presets.some(p => p.name === form.value.preset)) {
|
||||
form.value.preset = config.app.default_preset
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue