add await to config form request

This commit is contained in:
Arthur Lu 2022-12-19 16:21:24 -08:00
parent daf93b2b32
commit 534c40d7a9

View File

@ -11,6 +11,6 @@ async function init () {
}
async function populateForm (node, type, vmid) {
let config = request(`/nodes/${node}/${type}/${vmid}/config`);
let config = await request(`/nodes/${node}/${type}/${vmid}/config`);
console.log(config);
}