From fa190ca89c436d6978a7f55c3b25b47748cfdd28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Kukli=C5=84ski?= Date: Thu, 5 Sep 2024 11:59:07 +0200 Subject: [PATCH] Debugging behats --- src/Resources/assets/admin/js/cms/cms-template.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Resources/assets/admin/js/cms/cms-template.js b/src/Resources/assets/admin/js/cms/cms-template.js index 05ce7934..b12fd709 100644 --- a/src/Resources/assets/admin/js/cms/cms-template.js +++ b/src/Resources/assets/admin/js/cms/cms-template.js @@ -40,11 +40,12 @@ export class HandleTemplate { }); const elements = $('.bb-collection-item'); - console.log(elements); $.each(data.content, function (index, element) { - elements.eq(index).find('select:first').val(element.type); - elements.eq(index).find('select:first').change(); + setTimeout(() => { + elements.eq(index).find('select:first').val(element.type); + elements.eq(index).find('select:first').change(); + }, 500); }); } else { console.error(data.message);