Show rest errors in setup and use SingleSelect

This commit is contained in:
Johannes Zellner
2025-04-02 15:45:57 +02:00
parent ca402cb604
commit f89c0bb07c
2 changed files with 20 additions and 14 deletions

View File

@@ -105,12 +105,12 @@ async function onSubmit() {
if (error.status === 422) {
// TODO what is this special error checking for ami doing here?
if (provider.value === 'ami') {
formError.value.ami = error.message;
formError.value.ami = error.body.message;
} else {
formError.value.setup = error.message;
formError.value.setup = error.body.message;
}
} else {
formError.value.generic = error.message;
formError.value.generic = error.body ? error.body.message : 'Internal error';
}
busy.value = false;