Fix linter warning
This commit is contained in:
parent
46f0caeb4d
commit
295a7853a2
@ -127,7 +127,8 @@
|
|||||||
const setModalData = (element) => {
|
const setModalData = (element) => {
|
||||||
const inputs = studentForm.querySelectorAll("input[required]");
|
const inputs = studentForm.querySelectorAll("input[required]");
|
||||||
inputs.forEach((input) => {
|
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");
|
const idInput = studentForm.querySelector("#id");
|
||||||
idInput.value = element ? element.id : "";
|
idInput.value = element ? element.id : "";
|
||||||
|
Loading…
Reference in New Issue
Block a user