fix varaible instantiation

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2023-01-17 11:44:34 -08:00
parent c5224b71dc
commit 445fc10e5f

View File

@ -201,7 +201,7 @@ async function handleStorageChange () {
let busPrefix = id.split("_")[0]
if (diskConfig[type][busPrefix].hasDiskImage) { // if the bus has diskImage = true
let diskImageSelect = document.querySelector(`#${id.replace("storage", "img")}`);
for(i = diskImageSelect.options.length - 1; i >= 0; i--){
for(let i = diskImageSelect.options.length - 1; i >= 0; i--){
diskImageSelect.remove(i);
}
let diskImageOptions = await request(`/nodes/${node}/storage/${storage}/content?content=iso`);