Skip to content

Commit 970a3ea

Browse files
committed
fix:added fix of isDeleted title and url
1 parent 342e897 commit 970a3ea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ui/src/components/ContentMapper/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ const ContentMapper = forwardRef(({handleStepChange}: contentMapperProps, ref: R
448448
// To make all the fields checked
449449
useEffect(() => {
450450
const selectedId = tableData?.reduce<UidMap>((acc, item) => {
451-
if(! item?.isDeleted) {
451+
if(!item?.isDeleted) {
452452
acc[item?.id] = true;
453453

454454
}
@@ -975,7 +975,7 @@ const ContentMapper = forwardRef(({handleStepChange}: contentMapperProps, ref: R
975975
// Mark the item as deleted if not found in selectedData
976976
return {
977977
...tableItem,
978-
isDeleted: !selectedObj[tableItem?.id] //!found ? true : false,
978+
isDeleted: (tableItem?._canSelect ) ? !selectedObj[tableItem?.id] : tableItem?.isDeleted //!found ? true : false,
979979
};
980980
});
981981

ui/src/pages/Migration/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,11 +643,11 @@ const Migration = () => {
643643
await updateMigrationKey(selectedOrganisation.value, projectId);
644644

645645
const res = await updateCurrentStepData(selectedOrganisation.value, projectId);
646-
if (res?.status === 200) {
646+
//if (res?.status === 200) {
647647
handleStepChange(4);
648648
const url = `/projects/${projectId}/migration/steps/5`;
649649
navigate(url, { replace: true });
650-
}
650+
//}
651651
};
652652

653653
/**

0 commit comments

Comments
 (0)