Skip to content

Commit e3b3027

Browse files
committed
message
1 parent df20ae9 commit e3b3027

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

ui/src/components/ContentMapper/contentMapper.interface.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export interface FieldMapType {
7171
}
7272

7373
export interface Advanced {
74-
validationRegex: string;
74+
validationRegex?: string;
7575
mandatory?: boolean;
7676
multiple?: boolean;
7777
unique?: boolean;
@@ -96,6 +96,7 @@ export interface Advanced {
9696
multiple?: boolean;
9797
non_localizable?: boolean;
9898
}>; // Taxonomy UIDs from upload-api
99+
initial?: Omit<Advanced, 'initial'>;
99100
}
100101

101102
export interface ItemStatus {

ui/src/components/ContentMapper/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,7 +2057,9 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
20572057
contentstackFieldType: row?.backupFieldType,
20582058
contentstackField: row?.otherCmsField,
20592059
contentstackFieldUid: row?.backupFieldUid,
2060-
2060+
advanced: {
2061+
...row?.advanced?.initial,
2062+
},
20612063
};
20622064
});
20632065
setTableData(updatedRows);
@@ -2137,8 +2139,6 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
21372139
setContentTypes(resetContentTypes);
21382140
setCount(filteredCT?.length);
21392141

2140-
await fetchFields(selectedContentType?.id ?? '', searchText || '');
2141-
21422142
Notification({
21432143
notificationContent: { text: data?.message },
21442144
notificationProps: {

upload-api/migration-contentful/libs/extractLocale.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const extractLocale = async (jsonFilePath) => {
6969
}
7070

7171
uniqueLanguages.add(normalizedCode);
72+
// uniqueLanguages.add(locale?.code?.toLowerCase()); // Normalize to lowercase
7273
}
7374
});
7475
} else {

0 commit comments

Comments
 (0)