Skip to content

Commit 431e12b

Browse files
committed
copilit commment resolved: made validation regex as optional field.
1 parent 3ab52a8 commit 431e12b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

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

Lines changed: 1 addition & 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;

ui/src/components/ContentMapper/index.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2028,10 +2028,8 @@ const ContentMapper = forwardRef(({ handleStepChange }: contentMapperProps, ref:
20282028
contentstackField: row?.otherCmsField,
20292029
contentstackFieldUid: row?.backupFieldUid,
20302030
advanced: {
2031-
validationRegex: row?.advanced?.initial?.validationRegex ?? '',
20322031
...row?.advanced?.initial,
20332032
},
2034-
refrenceTo: []
20352033
};
20362034
});
20372035
setTableData(updatedRows);

0 commit comments

Comments
 (0)