Browse Source

Make sure `options` field exists on select field.

test-gpt-generated
Roman Axelrod 3 years ago
parent
commit
a2f8c7ebc1
  1. 4
      platforms/hubspot/hubspot-email-adapter.js

4
platforms/hubspot/hubspot-email-adapter.js

@ -98,7 +98,9 @@ export function convertToHubspotField(field = {}) {
}); });
case 'select': case 'select':
const options = []; 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, { return Object.assign({}, data, {
type: "choice", type: "choice",

Loading…
Cancel
Save