From e0e3d5802e156cb5e479f9fafe9f4733cb7a61b1 Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Mon, 19 Dec 2022 16:21:24 -0800 Subject: [PATCH] add await to config form request --- scripts/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/config.js b/scripts/config.js index 9168826..68aeddb 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -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); } \ No newline at end of file