Make sure options field exists on select field.
This commit is contained in:
@@ -98,7 +98,9 @@ export function convertToHubspotField(field = {}) {
|
|||||||
});
|
});
|
||||||
case 'select':
|
case 'select':
|
||||||
const options = [];
|
const options = [];
|
||||||
|
if (field.options) {
|
||||||
Object.keys(field.options).forEach(value => options.push([value, field.options[value]]));
|
Object.keys(field.options).forEach(value => options.push([value, field.options[value]]));
|
||||||
|
}
|
||||||
|
|
||||||
return Object.assign({}, data, {
|
return Object.assign({}, data, {
|
||||||
type: "choice",
|
type: "choice",
|
||||||
|
|||||||
Reference in New Issue
Block a user