fix variable naming conflict

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-01-16 15:47:13 -08:00
parent 474a9c9222
commit 7fe8dd2b7e

View File

@ -149,12 +149,12 @@ function addDiskLine (fieldset, busPrefix, busName, device, storage, storageOpti
} }
field.append(sizeInput); field.append(sizeInput);
let sizeUnit = document.createElement("select"); let sizeUnitSelect = document.createElement("select");
sizeUnitOptions.forEach((element) => { sizeUnitOptions.forEach((element) => {
sizeUnit.add(new Option(element)); sizeUnitSelect.add(new Option(element));
}); });
sizeUnit.value = sizeUnit; sizeUnitSelect.value = sizeUnit;
field.append(sizeUnit); field.append(sizeUnitSelect);
let deleteDiv = document.createElement("div"); let deleteDiv = document.createElement("div");
deleteDiv.classList.add("last-item"); deleteDiv.classList.add("last-item");