web: fix get details value

This commit is contained in:
King Kévin 2023-01-30 01:00:48 +01:00
parent 71aa43faf0
commit 3e01f7bf45
1 changed files with 1 additions and 5 deletions

View File

@ -236,11 +236,7 @@ function update_part()
// the fields
for (const field of fields) {
const input = document.getElementById('part_' + field);
if (input.tagName == "INPUT") {
part[field] = input.value;
} else if (input.tagName == "TEXTAREA") {
part[field] = input.innerHTML;
}
part[field] = input.value;
}
if (part["name"].length == 0) {
return;