Skip to content

Commit

Permalink
Revert "fix(website): fix input field name property being modified in…
Browse files Browse the repository at this point in the history
…correctly"

This reverts commit 99b35dc.
  • Loading branch information
bh-ethz authored and fengelniederhammer committed Feb 13, 2024
1 parent 4f942a2 commit d53c9b5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions website/src/components/Edit/EditPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,10 @@ 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={rawMetadataKey}
key={'raw_metadata' + field.key}
row={field}
onChange={(editedRow: Row) =>
setEditedMetadata((prevRows: Row[]) =>
Expand Down

0 comments on commit d53c9b5

Please sign in to comment.