Change limit

Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
soupette 2020-04-01 13:27:52 +02:00
parent 41b45e1fef
commit 5c2221a9ed
2 changed files with 3 additions and 1 deletions

View File

@ -132,6 +132,8 @@ const InputModalStepperProvider = ({
let type = 'ON_CHANGE';
if (name === 'url') {
setFormErrors(null);
val = value.split('\n');
type = 'ON_CHANGE_URLS_TO_DOWNLOAD';
}

View File

@ -35,7 +35,7 @@ const urlSchema = yup.object().shape({
},
})
.min(0, errorsTrads.min)
.max(3, errorsTrads.max),
.max(20, errorsTrads.max),
});
export default urlSchema;