diff --git a/www/form/inner.js b/www/form/inner.js index 0cfc789bc..63b74f06a 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -3879,6 +3879,7 @@ define([ // Make sure we can't create a section inside another one if (type === 'section' && arr !== content.order) { return; } + var model = TYPES[type] || STATIC_TYPES[type]; if (!model) { return; } content.form[_uid] = { @@ -3899,6 +3900,7 @@ define([ var controls = Object.keys(TYPES).map(addControl); var staticControls = Object.keys(STATIC_TYPES).map(addControl); + var buttons = h('div.cp-form-creator-control-inline', [ h('div.cp-form-creator-types', controls), h('div.cp-form-creator-types', staticControls)