From 89b61fd47d0a28f8d66c90b672ab2f4cb24285e9 Mon Sep 17 00:00:00 2001 From: shobhit upadhyay Date: Fri, 10 Oct 2025 16:08:29 +0530 Subject: [PATCH] chore: update .gitignore files to include .vscode and manifest.json, refactor ContentMapper bug fix CMG-727 to streamline row updates --- .gitignore | 3 ++- api/.gitignore | 3 ++- ui/src/components/ContentMapper/index.tsx | 10 ++++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index ffe1acc3d..cda7033d5 100644 --- a/.gitignore +++ b/.gitignore @@ -359,4 +359,5 @@ upload-api/cmsMigrationData upload-api/extracted_files *copy* .qodo -.vscode \ No newline at end of file +.vscode +app.json \ No newline at end of file diff --git a/api/.gitignore b/api/.gitignore index a3563aa2f..736178335 100644 --- a/api/.gitignore +++ b/api/.gitignore @@ -366,4 +366,5 @@ database/ /cmsMigrationData /migration-data **/copy* -**copy.ts \ No newline at end of file +**copy.ts +manifest.json \ No newline at end of file diff --git a/ui/src/components/ContentMapper/index.tsx b/ui/src/components/ContentMapper/index.tsx index 93da754ad..3272c7af0 100644 --- a/ui/src/components/ContentMapper/index.tsx +++ b/ui/src/components/ContentMapper/index.tsx @@ -858,10 +858,12 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref: setIsDropDownChanged(checkBoxChanged); const newTableData = tableData?.map?.((row: any) => { if (row?.uid === rowId && row?.contentstackFieldUid === rowContentstackFieldUid) { - if (row?.referenceTo) { - row.referenceTo = updatedSettings?.referenedItems; - } - return { ...row, advanced: { ...row?.advanced, ...updatedSettings } }; + const updatedRow = { + ...row, + referenceTo: updatedSettings?.referenedItems, + advanced: { ...row?.advanced, ...updatedSettings } + }; + return updatedRow; } return row; });