This commit is contained in:
Zuzanna 2025-08-11 15:06:43 +02:00
parent 55536c256f
commit 697ff283fb

View File

@ -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)