fix storage options populating

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-01-16 15:14:34 -08:00
parent 32a3c50f97
commit f7a11046e0

View File

@ -131,7 +131,7 @@ function addDiskLine (fieldset, busPrefix, busName, device, storage, storageOpti
} }
let storageSelect = document.createElement("select"); let storageSelect = document.createElement("select");
storageOptions.forEach((element) => { storageOptions.data.forEach((element) => {
if (element.content.includes(diskConfig[type].storageContent)) { // check if the storage contains rootdir or images content if (element.content.includes(diskConfig[type].storageContent)) { // check if the storage contains rootdir or images content
storageSelect.add(new Option(element.storage)); storageSelect.add(new Option(element.storage));
} }