mirror of
https://github.com/strapi/strapi.git
synced 2025-11-10 15:19:00 +00:00
Fix min equal
This commit is contained in:
parent
1efde575ad
commit
e991f6ec7c
@ -38,8 +38,6 @@ const EditViewDataManagerProvider = ({
|
|||||||
shouldCheckErrors,
|
shouldCheckErrors,
|
||||||
} = reducerState.toJS();
|
} = reducerState.toJS();
|
||||||
|
|
||||||
console.log({ formErrors });
|
|
||||||
|
|
||||||
const currentContentTypeLayout = get(allLayoutData, ['contentType'], {});
|
const currentContentTypeLayout = get(allLayoutData, ['contentType'], {});
|
||||||
const abortController = new AbortController();
|
const abortController = new AbortController();
|
||||||
const { signal } = abortController;
|
const { signal } = abortController;
|
||||||
|
|||||||
@ -15,7 +15,7 @@ yup.addMethod(yup.array, 'notEmptyMin', function(min) {
|
|||||||
if (isEmpty(value)) {
|
if (isEmpty(value)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return value.length > min;
|
return value.length >= min;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user