From a505793b4e6888dd355911ac53dcc73caef2252b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Kukli=C5=84ski?= Date: Thu, 5 Sep 2024 11:22:04 +0200 Subject: [PATCH] Debugging behat scenario --- src/Resources/assets/admin/js/cms/cms-template.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Resources/assets/admin/js/cms/cms-template.js b/src/Resources/assets/admin/js/cms/cms-template.js index b6a6bd8b..d3f743b6 100644 --- a/src/Resources/assets/admin/js/cms/cms-template.js +++ b/src/Resources/assets/admin/js/cms/cms-template.js @@ -44,8 +44,7 @@ export class HandleTemplate { }); $.each(data.content, function (index, element) { - elements.eq(index).val(element.type); - elements.eq(index).parent().add('
' + element.type + '
'); + elements.eq(index).val(element.type.toString()); elements.eq(index).change(); }); } else {