Skip to content

Commit

Permalink
fix(website): fix input field name property being modified incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
bh-ethz authored and fengelniederhammer committed Feb 13, 2024
1 parent 7252c8c commit 4f942a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion website/src/components/Edit/EditPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,11 @@ const EditableOriginalData: FC<EditableOriginalDataProps> = ({ editedMetadata, s
<>
<Subtitle title='Metadata' />
{editedMetadata.map((field) => {
const rawMetadataKey = 'raw_metadata' + field.key;
field.key = sentenceCase(field.key);
return (
<EditableDataRow
key={'raw_metadata' + field.key}
key={rawMetadataKey}
row={field}
onChange={(editedRow: Row) =>
setEditedMetadata((prevRows: Row[]) =>
Expand Down

0 comments on commit 4f942a2

Please sign in to comment.