CSV importing and exporting fixes (#8824)
Fixes issue https://github.com/twentyhq/twenty/issues/5793 (and duplicate https://github.com/twentyhq/twenty/issues/8822) - Fix importing multi-select and array fields. - Fix exporting and importing RAW_JSON fields. --------- Co-authored-by: ad-elias <elias@autodiligence.com>
This commit is contained in:
@ -8,5 +8,8 @@ export const getFieldOptions = <T extends string>(
|
||||
if (!field) {
|
||||
return [];
|
||||
}
|
||||
return field.fieldType.type === 'select' ? field.fieldType.options : [];
|
||||
return field.fieldType.type === 'select' ||
|
||||
field.fieldType.type === 'multiSelect'
|
||||
? field.fieldType.options
|
||||
: [];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user