From dc98674e73b3377d176e7e2cb58b5c281de1f4cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Barou=C5=A1?= Date: Wed, 2 Nov 2022 13:36:49 +0100 Subject: [PATCH] Fixes variable definition in easyadmin-extension.js --- src/Resources/public/js/easyadmin-extension.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/public/js/easyadmin-extension.js b/src/Resources/public/js/easyadmin-extension.js index 65dbd9a..386986e 100644 --- a/src/Resources/public/js/easyadmin-extension.js +++ b/src/Resources/public/js/easyadmin-extension.js @@ -38,7 +38,7 @@ function reloadEmbeddedList(identifier, toggleBaseUrl) { ; const toggles = $(containerPrefix).find('table .checkbox-switch input[type="checkbox"]'); - for (i = 0; i < toggles.length; i++) { + for (let i = 0; i < toggles.length; i++) { toggles[i].addEventListener('change', function () { const toggle = this; const newValue = this.checked;