Skip to content

Commit e7ea1cf

Browse files
committed
fix:refacor the spelling mistake of warn msg and [CMG-535]
1 parent aa5df75 commit e7ea1cf

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

ui/src/components/ContentMapper/index.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,15 @@ const ContentMapper = forwardRef(({handleStepChange}: contentMapperProps, ref: R
501501
[key]: { label: item?.display_name, value: item },
502502
}));
503503
}
504-
if (item?.data_type === "group" && Array.isArray(item?.schema)) {
504+
if(contentTypeSchema?.every((item)=> value?.value?.uid !== item?.uid)){
505+
setExistingField((prevOptions: ExistingFieldType) => {
506+
const { [key]: _, ...rest } = prevOptions; // Destructure to exclude the key to remove
507+
return {
508+
...rest
509+
};
510+
})
511+
}
512+
else if (item?.data_type === "group" && Array.isArray(item?.schema)) {
505513
item?.schema?.forEach((schemaItem) => {
506514

507515
if (value?.value?.uid === schemaItem?.uid && value?.label === `${item?.display_name} > ${schemaItem?.display_name}`) {

ui/src/pages/Migration/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ const Migration = () => {
501501
} else if (! hasNonEmptyMapping) {
502502
setIsLoading(false);
503503
Notification({
504-
notificationContent: { text: 'Please complete the language mapping to preceed futher' },
504+
notificationContent: { text: 'Please complete the language mapping to proceed futher' },
505505
type: 'warning'
506506
});
507507
}

0 commit comments

Comments
 (0)