From 299f60a8787023894a11005e5ef0e192aaaf1975 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 16 Jan 2023 15:47:13 -0800 Subject: [PATCH] fix variable naming conflict Signed-off-by: Arthur Lu --- scripts/config.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/config.js b/scripts/config.js index be55cd7..fdc3452 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -149,12 +149,12 @@ function addDiskLine (fieldset, busPrefix, busName, device, storage, storageOpti } field.append(sizeInput); - let sizeUnit = document.createElement("select"); + let sizeUnitSelect = document.createElement("select"); sizeUnitOptions.forEach((element) => { - sizeUnit.add(new Option(element)); + sizeUnitSelect.add(new Option(element)); }); - sizeUnit.value = sizeUnit; - field.append(sizeUnit); + sizeUnitSelect.value = sizeUnit; + field.append(sizeUnitSelect); let deleteDiv = document.createElement("div"); deleteDiv.classList.add("last-item");