Skip to content

Commit 42a6d77

Browse files
committed
fix:resolved content mapper bug [CMG-542]
1 parent a7c89b3 commit 42a6d77

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

ui/src/components/ContentMapper/index.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,21 +175,21 @@ const Fields: MappingFields = {
175175
options: {
176176
'Dropdown':'dropdown'
177177
},
178-
type: 'enum',
178+
type: 'dropdown',
179179
},
180180
'radio': {
181181
label :'Select',
182182
options: {
183183
'Select':'select'
184184
},
185-
type: 'enum',
185+
type: 'radio',
186186
},
187187
'checkbox': {
188188
label:'Select',
189189
options: {
190190
'Select':'checkbox'
191191
},
192-
type:'boolean'
192+
type:'display_type'
193193
},
194194
'global_field':{
195195
label : 'Global',
@@ -1256,10 +1256,14 @@ const ContentMapper = forwardRef(({handleStepChange}: contentMapperProps, ref: R
12561256
return value?.data_type === 'isodate';
12571257
case 'json':
12581258
return value?.data_type === 'json';
1259-
case 'enum':
1260-
return 'enum' in value;
1261-
case 'display_type':
1259+
// case 'enum':
1260+
// return 'enum' in value;
1261+
case 'radio':
1262+
return value?.display_type === 'radio';
1263+
case 'dropdown':
12621264
return value?.display_type === 'dropdown';
1265+
case 'checkbox':
1266+
return value?.display_type === 'checkbox';
12631267
case 'allow_rich_text':
12641268
return value?.field_metadata?.allow_rich_text === true;
12651269
case 'Group':

0 commit comments

Comments
 (0)