From 295a7853a2a177e718d0ad689a0a61e6c1a5f8e6 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Thu, 28 Nov 2024 19:48:54 +0400 Subject: [PATCH] Fix linter warning --- page-js.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/page-js.html b/page-js.html index e78be2b..07a87dc 100644 --- a/page-js.html +++ b/page-js.html @@ -127,7 +127,8 @@ const setModalData = (element) => { const inputs = studentForm.querySelectorAll("input[required]"); inputs.forEach((input) => { - input.value = element ? element[input.getAttribute("id")] : ""; + const control = input; + control.value = element ? element[input.getAttribute("id")] : ""; }); const idInput = studentForm.querySelector("#id"); idInput.value = element ? element.id : "";