From 697ff283fb7ca169ad4baab709545a6e55dbdc0d Mon Sep 17 00:00:00 2001 From: Zuzanna Date: Mon, 11 Aug 2025 15:06:43 +0200 Subject: [PATCH] newlines --- www/form/inner.js | 2 ++ 1 file changed, 2 insertions(+) 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)