removed redundant params in populateResources

This commit is contained in:
Arthur Lu 2023-01-12 15:08:02 -08:00
parent 6984f20998
commit 79a46b1f9b

View File

@ -30,7 +30,7 @@ async function init () {
node = uriData.node;
type = uriData.type;
vmid = uriData.vmid;
await populateResources(node, type, vmid);
await populateResources();
await populateAddDisk();
let cancelButton = document.querySelector("#cancel");
@ -44,7 +44,7 @@ async function init () {
*/
}
async function populateResources (node, type, vmid) {
async function populateResources () {
let config = await request(`/nodes/${node}/${type}/${vmid}/config`);
console.log(config);