diff --git a/.gitignore b/.gitignore index ffe1acc3..cda7033d 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 a3563aa2..73617833 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 93da754a..3272c7af 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; });