From 392446219de764f5b4a08e279b6b8420659308a4 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