Fix linter warning

This commit is contained in:
Aleksey Filippov 2024-11-28 19:48:54 +04:00
parent 46f0caeb4d
commit 295a7853a2

View File

@ -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 : "";