Skip to content

Commit

Permalink
fix requirements loss
Browse files Browse the repository at this point in the history
  • Loading branch information
BirdMachine committed Oct 16, 2024
1 parent 8aacd10 commit e89b066
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
11 changes: 0 additions & 11 deletions src/src/components/collections/collections.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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])) {
Expand Down
11 changes: 0 additions & 11 deletions src/src/components/collections/epicollections.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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])) {
Expand Down

0 comments on commit e89b066

Please sign in to comment.