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 ea06755a1e
commit 0aa983594f

View File

@ -131,7 +131,7 @@ function addDiskLine (fieldset, busPrefix, busName, device, storage, storageOpti
}
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
storageSelect.add(new Option(element.storage));
}