Skip to content

Commit 89b61fd

Browse files
chore: update .gitignore files to include .vscode and manifest.json, refactor ContentMapper bug fix CMG-727 to streamline row updates
1 parent 07020e8 commit 89b61fd

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,4 +359,5 @@ upload-api/cmsMigrationData
359359
upload-api/extracted_files
360360
*copy*
361361
.qodo
362-
.vscode
362+
.vscode
363+
app.json

api/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,4 +366,5 @@ database/
366366
/cmsMigrationData
367367
/migration-data
368368
**/copy*
369-
**copy.ts
369+
**copy.ts
370+
manifest.json

ui/src/components/ContentMapper/index.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -858,10 +858,12 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
858858
setIsDropDownChanged(checkBoxChanged);
859859
const newTableData = tableData?.map?.((row: any) => {
860860
if (row?.uid === rowId && row?.contentstackFieldUid === rowContentstackFieldUid) {
861-
if (row?.referenceTo) {
862-
row.referenceTo = updatedSettings?.referenedItems;
863-
}
864-
return { ...row, advanced: { ...row?.advanced, ...updatedSettings } };
861+
const updatedRow = {
862+
...row,
863+
referenceTo: updatedSettings?.referenedItems,
864+
advanced: { ...row?.advanced, ...updatedSettings }
865+
};
866+
return updatedRow;
865867
}
866868
return row;
867869
});

0 commit comments

Comments
 (0)