diff --git a/ui/src/components/ContentMapper/contentMapper.interface.ts b/ui/src/components/ContentMapper/contentMapper.interface.ts index 281c11fe6..ac71f9040 100644 --- a/ui/src/components/ContentMapper/contentMapper.interface.ts +++ b/ui/src/components/ContentMapper/contentMapper.interface.ts @@ -71,7 +71,7 @@ export interface FieldMapType { } export interface Advanced { - validationRegex: string; + validationRegex?: string; mandatory?: boolean; multiple?: boolean; unique?: boolean; @@ -89,6 +89,7 @@ export interface Advanced { referenedItems?: string[]; title?: string; url?: string; + initial?: Omit; } export interface ItemStatus { diff --git a/ui/src/components/ContentMapper/index.tsx b/ui/src/components/ContentMapper/index.tsx index c7eada3de..7fd2d8d4a 100644 --- a/ui/src/components/ContentMapper/index.tsx +++ b/ui/src/components/ContentMapper/index.tsx @@ -2027,7 +2027,9 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref: contentstackFieldType: row?.backupFieldType, contentstackField: row?.otherCmsField, contentstackFieldUid: row?.backupFieldUid, - + advanced: { + ...row?.advanced?.initial, + }, }; }); setTableData(updatedRows); @@ -2107,8 +2109,6 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref: setContentTypes(resetContentTypes); setCount(filteredCT?.length); - await fetchFields(selectedContentType?.id ?? '', searchText || ''); - Notification({ notificationContent: { text: data?.message }, notificationProps: {