Merge pull request #1812 from RafaelTaranto/fix/yup-update-on-custom-info-request

LAM-1354 fix: update yup usage on custom info requests
This commit is contained in:
Rafael Taranto 2025-03-25 18:55:04 +00:00 committed by GitHub
commit f5ba3dbf4e

View file

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