mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 02:16:03 +00:00
fix: validation error fixed for simple errors (#20395)
This commit is contained in:
parent
04a0109973
commit
20380c3536
@ -72,6 +72,16 @@ const formatErrorMessages = (errors: FormErrors, parentKey: string, formatMessag
|
||||
} else {
|
||||
messages.push(...formatErrorMessages(value, currentKey, formatMessage));
|
||||
}
|
||||
} else {
|
||||
messages.push(
|
||||
formatMessage(
|
||||
{
|
||||
id: `${value}.withField`,
|
||||
defaultMessage: value,
|
||||
},
|
||||
{ field: currentKey }
|
||||
)
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user