mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Update packages
This commit is contained in:
@@ -41,7 +41,9 @@ const EditZone = () => {
|
||||
zone: data,
|
||||
});
|
||||
|
||||
if (updatedZone.serverError) {
|
||||
if (updatedZone?.validationErrors) {
|
||||
throw new Error("ERR_VALIDATION");
|
||||
} else if (updatedZone?.serverError) {
|
||||
throw new Error(updatedZone.serverError);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user