From 5e11295390a8c68ec6d8428da688dadde59bd187 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 10 Jan 2023 17:09:59 -0800 Subject: [PATCH] remove all references to disks --- scripts/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.js b/scripts/config.js index 3f0d057..6bd4d8a 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -60,7 +60,7 @@ async function populateForm (node, type, vmid) { }); let ordered_keys = Object.keys(entry.used).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}`, entry.used[element]); + addDiskLine("disks", `${prefix}${element}`, entry.used[element].includes("media=cdrom") ? "images/resources/disk.svg" : "images/resources/drive.svg", `${entry} ${element}`, entry.used[element]); }); }