From e89b0663991a9c65cc6c07e5e0dfd183000392e1 Mon Sep 17 00:00:00 2001 From: Birdmachine Date: Wed, 16 Oct 2024 11:19:44 -0400 Subject: [PATCH] fix requirements loss --- src/src/components/collections/collections.jsx | 11 ----------- src/src/components/collections/epicollections.jsx | 11 ----------- 2 files changed, 22 deletions(-) diff --git a/src/src/components/collections/collections.jsx b/src/src/components/collections/collections.jsx index d7ca8e5c..22a2d282 100644 --- a/src/src/components/collections/collections.jsx +++ b/src/src/components/collections/collections.jsx @@ -379,18 +379,7 @@ export function CollectionForm (props){ // Only include if presnent, ignore if not console.debug('%c⊙', 'color:#00ff7b', "contributors",contributors ); if (contributors && (contributors[0] && contributors[0].orcid!==undefined)) { - // formValuesSubmit.contributors = contributors formValuesSubmit.contributors = contributors - setFormErrors((prevValues) => ({ - ...prevValues, - 'contributors': "", - })) - } else{ - setFormErrors((prevValues) => ({ - ...prevValues, - 'contributors': "Contributors detected but colums are unsupported / improperly formatted. Please refer to the examples linked below and try again.", - })) - isValid = false; } // Do not send blank contacts if (contacts && (contacts[0])) { diff --git a/src/src/components/collections/epicollections.jsx b/src/src/components/collections/epicollections.jsx index 35410642..dd41472d 100644 --- a/src/src/components/collections/epicollections.jsx +++ b/src/src/components/collections/epicollections.jsx @@ -380,18 +380,7 @@ export function EPICollectionForm (props){ // Only include if presnent, ignore if not console.debug('%c⊙', 'color:#00ff7b', "contributors",contributors ); if (contributors && (contributors[0] && contributors[0].orcid!==undefined)) { - // formValuesSubmit.contributors = contributors formValuesSubmit.contributors = contributors - setFormErrors((prevValues) => ({ - ...prevValues, - 'contributors': "", - })) - } else{ - setFormErrors((prevValues) => ({ - ...prevValues, - 'contributors': "Contributors detected but colums are unsupported / improperly formatted. Please refer to the examples linked below and try again.", - })) - isValid = false; } // Do not send blank contacts if (contacts && (contacts[0])) {