mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-06-09 18:19:36 +00:00
close dialog on fail
This commit is contained in:
@@ -83,9 +83,10 @@ const DevicesDialog = ({
|
||||
} else {
|
||||
await validate(validator, editItem);
|
||||
}
|
||||
onSave(editItem);
|
||||
} catch (error) {
|
||||
setFieldErrors((error as ValidationError).fieldErrors);
|
||||
} finally {
|
||||
onSave(editItem);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user