From 481e1a5efc3d13d1c565b720280686b03b3b4a5d Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Fri, 8 Mar 2024 03:17:54 +0100 Subject: [PATCH] fix #1261 --- website/src/components/Edit/EditPage.tsx | 30 ++++++++++-------------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/website/src/components/Edit/EditPage.tsx b/website/src/components/Edit/EditPage.tsx index e687e45aa..9b4467400 100644 --- a/website/src/components/Edit/EditPage.tsx +++ b/website/src/components/Edit/EditPage.tsx @@ -201,20 +201,17 @@ const EditableOriginalData: FC = ({ editedMetadata, s <> {editedMetadata.map((field) => { - field.key = sentenceCase(field.key); - return ( - - setEditedMetadata((prevRows: Row[]) => - prevRows.map((prevRow) => - prevRow.key === editedRow.key ? { ...prevRow, value: editedRow.value } : prevRow, - ), - ) - } - /> - ); + + setEditedMetadata((prevRows: Row[]) => + prevRows.map((prevRow) => + prevRow.key === editedRow.key ? { ...prevRow, value: editedRow.value } : prevRow, + ), + ) + } + />; })} ); @@ -249,10 +246,7 @@ const ProcessedMetadata: FC = ({ processedMetadata }) => <> {Object.entries(processedMetadata).map(([key, value]) => ( - + ))} );