fix variable typo

This commit is contained in:
Arthur Lu 2023-01-10 17:06:34 -08:00
parent d3c4f338cf
commit 81da4724e9

View File

@ -60,7 +60,7 @@ async function populateForm (node, type, vmid) {
});
let ordered_keys = Object.keys(disks).sort((a,b) => {parseInt(a) - parseInt(b)}); // ordered integer list
ordered_keys.forEach(element => {
addDiskLine("disks", `${prefix}${element}`, disks[element].includes("media=cdrom") ? "images/resources/disk.svg" : "images/resources/drive.svg", `${entry} ${element}`, emtry.used[element]);
addDiskLine("disks", `${prefix}${element}`, disks[element].includes("media=cdrom") ? "images/resources/disk.svg" : "images/resources/drive.svg", `${entry} ${element}`, entry.used[element]);
});
}