diff --git a/ui/src/components/ContentMapper/index.tsx b/ui/src/components/ContentMapper/index.tsx index d7ae14301..81ef07407 100644 --- a/ui/src/components/ContentMapper/index.tsx +++ b/ui/src/components/ContentMapper/index.tsx @@ -164,7 +164,7 @@ const Fields: Mapping = { 'HTML Rich text Editor': 'JSON Rich Text Editor', 'JSON Rich Text Editor': 'JSON Rich Text Editor', // 'Multi line': - json: 'JSON Rich Text Editor', + json: ['HTML Rich text Editor', 'JSON Rich Text Editor'], URL: 'URL', file: 'File', number: 'Number', @@ -172,7 +172,7 @@ const Fields: Mapping = { boolean: 'Boolean', link: 'Link', reference: 'Reference', - dropdown: 'Select', + dropdown: 'dropdown', radio: 'Select', CheckBox: 'Select', global_field: 'Global' @@ -484,7 +484,7 @@ const ContentMapper = () => {
{data?.otherCmsField}
- Other CMS Type: {data?.otherCmsType} + Type: {data?.otherCmsType}
UID: {data?.uid}
@@ -892,6 +892,10 @@ const ContentMapper = () => { setisDropDownCHanged(false); setisContentTypeMapped(true); setisContentTypeSaved(true); + + setFilteredContentTypes(filteredContentTypes?.map(ct => + ct?.id === data?.updatedContentType?.id ? { ...ct, status: data?.updatedContentType?.status } : ct + )) } else { Notification({ notificationContent: { text: data?.error?.message }, @@ -1108,17 +1112,14 @@ const ContentMapper = () => { >
- {content?.type === "Content Type" + {content?.type === "content_type" ? - : content?.type === "Global Field" - ? - : <> + : } {content?.otherCmsTitle && {content?.otherCmsTitle} }
-
{icon && (