Skip to content

Commit 5f2d302

Browse files
committed
fix:removed mapping for custom and modular block for existing stack case
1 parent 7ec8522 commit 5f2d302

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ui/src/components/ContentMapper/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ const Fields: MappingFields = {
169169
options: {
170170
'Reference':'reference'
171171
},
172-
type: 'reference',
172+
type: '',
173173
},
174174
'dropdown': {
175175
label:'Dropdown',
@@ -1240,7 +1240,7 @@ const ContentMapper = forwardRef(({handleStepChange}: contentMapperProps, ref: R
12401240

12411241
//utility function to map the source cms field type to content type field type
12421242
function checkConditions(fieldTypeToMatch: string | string[], value: ContentTypesSchema, data: FieldMapType) {
1243-
const fieldTypes = new Set(['number', 'isodate', 'file', 'reference', 'boolean', 'group', 'link','global_field']);
1243+
const fieldTypes = new Set(['number', 'isodate', 'file', 'reference', 'boolean', 'group', 'link','global_field','json','blocks']);
12441244
switch (fieldTypeToMatch) {
12451245
case 'text':
12461246
return (
@@ -1266,7 +1266,7 @@ const ContentMapper = forwardRef(({handleStepChange}: contentMapperProps, ref: R
12661266
case 'isodate':
12671267
return value?.data_type === 'isodate';
12681268
case 'json':
1269-
return value?.data_type === 'json';
1269+
return value?.data_type === 'json' && value?.field_metadata?.allow_json_rte;
12701270
// case 'enum':
12711271
// return 'enum' in value;
12721272
case 'radio':

0 commit comments

Comments
 (0)