From fff454ea0ed655e3a3cb44c745ef85c41f9c1e08 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 9 Jan 2023 23:51:11 -0800 Subject: [PATCH] fix disk populating issue --- scripts/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.js b/scripts/config.js index 783f4b8..6f219f6 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -52,7 +52,7 @@ async function populateForm (node, type, vmid) { let disks = {}; Object.keys(config.data).forEach(element => { if (element.startsWith(prefix)) { - element.replace(prefix, "") = config.data[element]; + disks[element.replace(prefix, "")] = config.data[element]; } }); let ordered_keys = Object.keys(disks).sort((a,b) => {parseInt(a) - parseInt(b)}); // ordered integer list