add await to config form request

This commit is contained in:
Arthur Lu 2022-12-19 16:21:24 -08:00
parent 1cb66da505
commit e0e3d5802e

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);
}