fix missing increment

This commit is contained in:
Arthur Lu 2022-12-20 15:38:53 -08:00
parent 2104a0e15e
commit 99ef947b1c

View File

@ -25,6 +25,7 @@ async function populateForm (node, type, vmid) {
let i = 0; let i = 0;
while(Object.hasOwn(config.data, `sata${i}`)){ while(Object.hasOwn(config.data, `sata${i}`)){
addFormLine(`sata${i}`, `SATA ${i}`, {type: "text", value: config.data[`sata${i}`]}); addFormLine(`sata${i}`, `SATA ${i}`, {type: "text", value: config.data[`sata${i}`]});
i++;
} }
} }