Skip to content

Commit 4f58154

Browse files
committed
Failed Usecase change
1 parent 2e6b7f7 commit 4f58154

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

ui/src/components/ContentMapper/index.tsx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,7 +1427,7 @@ const ContentMapper = forwardRef(({handleStepChange}: contentMapperProps, ref: R
14271427
>
14281428
<Button
14291429
buttonType="light"
1430-
disabled={(contentTypeSchema && existingField[data?.uid] || newMigrationData?.project_current_step > 4) ? true : false}
1430+
disabled={(contentTypeSchema && existingField[data?.uid]) || newMigrationData?.project_current_step > 4}
14311431
>
14321432
<Icon
14331433
version={'v2'}
@@ -1470,8 +1470,6 @@ const ContentMapper = forwardRef(({handleStepChange}: contentMapperProps, ref: R
14701470
}
14711471
}
14721472
};
1473-
1474-
14751473
dispatch(updateNewMigrationData(newMigrationDataObj));
14761474
}
14771475

@@ -1513,8 +1511,7 @@ const ContentMapper = forwardRef(({handleStepChange}: contentMapperProps, ref: R
15131511
content_mapping: { ...newMigrationData?.content_mapping, isDropDownChanged: false }
15141512
};
15151513

1516-
1517-
dispatch(updateNewMigrationData((newMigrationDataObj)));
1514+
dispatch(updateNewMigrationData((newMigrationDataObj)));
15181515

15191516
const savedCT = filteredContentTypes?.map(ct =>
15201517
ct?.id === data?.data?.updatedContentType?.id ? { ...ct, status: data?.data?.updatedContentType?.status } : ct
@@ -1532,7 +1529,7 @@ const ContentMapper = forwardRef(({handleStepChange}: contentMapperProps, ref: R
15321529

15331530
} else {
15341531
const FailedCT = filteredContentTypes?.map(ct =>
1535-
ct?.id === selectedContentType?.id ? { ...ct, status: data?.data?.status } : ct
1532+
ct?.id === selectedContentType?.id ? { ...ct, status: selectedContentType?.status } : ct
15361533
);
15371534

15381535
setFilteredContentTypes(FailedCT);
@@ -1815,7 +1812,7 @@ const ContentMapper = forwardRef(({handleStepChange}: contentMapperProps, ref: R
18151812

18161813
const adjustedOption = options?.map((option) => ({
18171814
...option,
1818-
isDisabled: filteredContentTypes?.some((ct) => ct?.contentstackUid === option?.id) || (contentTypeMapped && Object.values(contentTypeMapped).includes(option?.label))
1815+
isDisabled: filteredContentTypes?.some((ct) => ct?.contentstackUid === option?.id) || (contentTypeMapped && Object.values(contentTypeMapped).includes(option?.id))
18191816
}));
18201817

18211818
// Function to toggle filter panel
@@ -2100,11 +2097,8 @@ const ContentMapper = forwardRef(({handleStepChange}: contentMapperProps, ref: R
21002097
uploadedFile:{
21012098
...newMigrationData?.legacy_cms?.uploadedFile,
21022099
reValidate: true
2103-
21042100
}
21052101
}
2106-
2107-
21082102
}
21092103

21102104
dispatch(updateNewMigrationData(newMigrationDataObj));

0 commit comments

Comments
 (0)