From 7ed10efcd1af82092dcaa0d7ec4ebeefd1c8322d Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Mon, 24 Feb 2025 13:49:33 +0100 Subject: [PATCH] Fix declaration of variables for dynamic picker --- .../Resources/public/module/pick-entity/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Bundle/ChillMainBundle/Resources/public/module/pick-entity/index.js b/src/Bundle/ChillMainBundle/Resources/public/module/pick-entity/index.js index b8fbf2022..d887a6870 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/module/pick-entity/index.js +++ b/src/Bundle/ChillMainBundle/Resources/public/module/pick-entity/index.js @@ -12,6 +12,10 @@ function loadDynamicPicker(element) { let apps = element.querySelectorAll('[data-module="pick-dynamic"]'); apps.forEach(function (el) { + let suggested; + let as_id; + let submit_on_adding_new_entity; + let label; const isMultiple = parseInt(el.dataset.multiple) === 1, uniqId = el.dataset.uniqid, input = element.querySelector(