|
|
|
@ -98,7 +98,9 @@ export function convertToHubspotField(field = {}) { |
|
|
|
}); |
|
|
|
case 'select': |
|
|
|
const options = []; |
|
|
|
Object.keys(field.options).forEach(value => options.push([value, field.options[value]])); |
|
|
|
if (field.options) { |
|
|
|
Object.keys(field.options).forEach(value => options.push([value, field.options[value]])); |
|
|
|
} |
|
|
|
|
|
|
|
return Object.assign({}, data, { |
|
|
|
type: "choice", |
|
|
|
|