From df352ed54db4f314705e5b1da7b1d681d9a24e66 Mon Sep 17 00:00:00 2001 From: Zuzanna Date: Thu, 2 Oct 2025 15:50:33 +0200 Subject: [PATCH] cleaning --- www/form/inner.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/www/form/inner.js b/www/form/inner.js index 2e4e18670..f9e7553db 100644 --- a/www/form/inner.js +++ b/www/form/inner.js @@ -3865,13 +3865,7 @@ define([ var idx = content.order.indexOf(uid); if (!full) { if (inSection) { - if (content.form[uid].type === 'section') { - var section = content.form[uid]; - } else { - var $el = $container.find(`[data-id="${uid}"]`); - var sectionUid = $el.parents('.cp-form-block').attr('data-id'); - var section = content.form[sectionUid]; - } + var section = content.form[uid]; section.opts = section.opts || STATIC_TYPES.section.opts; arr = section.opts.questions; } else {