Fix useFormValidationSlice
This commit is contained in:
parent
73e7f64860
commit
df94a6322d
@ -38,8 +38,8 @@ export function useGetErrors(params: {
|
|||||||
|
|
||||||
const { value: defaultValue, validators } = attributes.find(attribute => attribute.name === name)!;
|
const { value: defaultValue, validators } = attributes.find(attribute => attribute.name === name)!;
|
||||||
|
|
||||||
if (defaultValue === value && messagesPerField.existsError(value)) {
|
if (defaultValue === value && messagesPerField.existsError(name)) {
|
||||||
const errorMessageStr = messagesPerField.get(value);
|
const errorMessageStr = messagesPerField.get(name);
|
||||||
|
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user