Skip to content

Commit

Permalink
Merge pull request #1254 from CDL-Dryad/2583-preliminary-information-…
Browse files Browse the repository at this point in the history
…field-radio-button-selection-not-sticking

Base view only on what users select
  • Loading branch information
ryscher authored Jun 28, 2023
2 parents 0ad19ca + 7ef15fd commit 4758bca
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions app/javascript/react/components/MetadataEntry/PrelimInfo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@ function PrelimInfo(
) {
const csrf = document.querySelector("meta[name='csrf-token']")?.getAttribute('content');

let tempVal;
if (msid?.value) {
tempVal = 'manuscript';
} else if (related_identifier) {
tempVal = 'published';
} else {
tempVal = importInfo;
}
const tempVal = importInfo;

const [acText, setAcText] = useState(publication_name?.value || '');
const [acID, setAcID] = useState(publication_issn?.value || '');
Expand Down

0 comments on commit 4758bca

Please sign in to comment.