diff --git a/front/src/api.js b/front/src/api.js index 79457cb..74e89ed 100644 --- a/front/src/api.js +++ b/front/src/api.js @@ -159,6 +159,10 @@ export function extractFormErrorFromField(fieldName, errors) { if (errors === null) { return ""; } + if (errors.value == null) { + return ""; + } + console.log(errors.value); const titleErr = errors.find((e) => e["field"] === fieldName); if (typeof titleErr !== 'undefined') { return titleErr.error;