From 79a46b1f9b8e58b448c328d13dee582e33cebf13 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Thu, 12 Jan 2023 15:08:02 -0800 Subject: [PATCH] removed redundant params in populateResources --- scripts/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/config.js b/scripts/config.js index 25a70ba..7e29fd4 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -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);