Skip to content

Commit

Permalink
ReactJS: Fix an input component changing from uncontrolled to controlled
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Smock <[email protected]>
  • Loading branch information
tsmock committed May 31, 2023
1 parent bd155aa commit cb1e391
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/components/projectEdit/metadataForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ export const MetadataForm = () => {
values={{ link: <IdDocsLink /> }}
/>
</p>
<ExtraIdParams value={projectInfo.extraIdParams} setProjectInfo={setProjectInfo} />
<ExtraIdParams
value={projectInfo.extraIdParams ? projectInfo.extraIdParams : ''}
setProjectInfo={setProjectInfo}
/>
</div>
<div className={styleClasses.divClass}>
<label className={styleClasses.labelClass}>
Expand Down

0 comments on commit cb1e391

Please sign in to comment.