Skip to content

Commit

Permalink
update draft doi only if datasetIdentifier is set.
Browse files Browse the repository at this point in the history
  • Loading branch information
fostermh committed Jul 12, 2024
1 parent 964bd1e commit 823459f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Pages/MetadataForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ class MetadataForm extends FormClassTemplate {
const { datacitePrefix } = this.context;

try {
if (datacitePrefix){
if (datacitePrefix && record.datasetIdentifier){
const statusCode = await performUpdateDraftDoi(record, region, language, datacitePrefix);

if (statusCode === 200) {
Expand Down

0 comments on commit 823459f

Please sign in to comment.