Fixed display errors from API in front

This commit is contained in:
2026-02-23 17:43:53 +01:00
parent 206a6800a4
commit f01ab82ee9

View File

@@ -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;