Merge pull request #1813 from lamassu/releases/v10.2

Releases/v10.2
This commit is contained in:
Rafael Taranto 2025-03-26 13:07:22 +00:00 committed by GitHub
commit ea79492852

View file

@ -45,7 +45,7 @@ const validationSchema = Yup.lazy(values => {
is: 'length', is: 'length',
then: schema => then: schema =>
schema.min(0).required('The number of digits is required'), schema.min(0).required('The number of digits is required'),
otherwise: schema => schema.mixed().notRequired() otherwise: schema => schema.notRequired()
}) })
}) })
case 'text': case 'text':
@ -55,7 +55,7 @@ const validationSchema = Yup.lazy(values => {
inputLabel2: Yup.string().when('constraintType', { inputLabel2: Yup.string().when('constraintType', {
is: 'spaceSeparation', is: 'spaceSeparation',
then: schema => schema.label('Second word label').required(), then: schema => schema.label('Second word label').required(),
otherwise: schema => schema.mixed().notRequired() otherwise: schema => schema.notRequired()
}) })
}) })
case 'choiceList': case 'choiceList':