From 7b13f84a7f8e3915bbc55e4cb8453a5881388122 Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Wed, 19 Oct 2022 06:59:21 -0400 Subject: [PATCH] removed unnecessary required --- src/components/Asset/Edit/_validation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Asset/Edit/_validation.ts b/src/components/Asset/Edit/_validation.ts index 1bb405bcc..52b9faf07 100644 --- a/src/components/Asset/Edit/_validation.ts +++ b/src/components/Asset/Edit/_validation.ts @@ -10,8 +10,8 @@ export const validationSchema = Yup.object().shape({ files: Yup.array() .of( Yup.object().shape({ - url: Yup.string().url('Must be a valid URL.').required('Required'), - valid: Yup.boolean().isTrue().required('File must be valid.') + url: Yup.string().url('Must be a valid URL.'), + valid: Yup.boolean().isTrue() }) ) .nullable(),