Skip to content

Commit

Permalink
Merge pull request #1533 from hubmapconsortium/contributorCedarValida…
Browse files Browse the repository at this point in the history
…tion

Better capture deprecated or invalid Schema ID Value Error
  • Loading branch information
yuanzhou authored Jan 31, 2025
2 parents bdcd0c0 + ede9114 commit 6906068
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/src/components/collections/collections.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,14 @@ export function CollectionForm (props){
"row": "N/A"
}
]);
}else if(errorSet == "This is not the latest version of the metadata specification as defined in CEDAR"){
setContributorValidationErrors([
{
"column": "N/A",
"error": "This is not the latest version of the metadata specification as defined in CEDAR",
"row": "N/A"
}
]);
}else{
setContributorValidationErrors(errorSet);
}
Expand Down
8 changes: 8 additions & 0 deletions src/src/components/collections/epicollections.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,14 @@ export function EPICollectionForm (props){
"row": "N/A"
}
]);
}else if(errorSet == "This is not the latest version of the metadata specification as defined in CEDAR"){
setContributorValidationErrors([
{
"column": "N/A",
"error": "This is not the latest version of the metadata specification as defined in CEDAR",
"row": "N/A"
}
])
}else{
setContributorValidationErrors(errorSet);
}
Expand Down

0 comments on commit 6906068

Please sign in to comment.