From 7d64715c30f03fe422fa7771d136e6f4a3f30a3b Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Tue, 1 Oct 2024 18:19:59 +0000 Subject: [PATCH] update config to api change --- config.html | 8 ++++++++ scripts/config.js | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config.html b/config.html index 875f28e..98089bd 100644 --- a/config.html +++ b/config.html @@ -14,6 +14,14 @@ +
diff --git a/scripts/config.js b/scripts/config.js index 0d54984..b2e75e3 100644 --- a/scripts/config.js +++ b/scripts/config.js @@ -81,7 +81,7 @@ async function getConfig () { async function populateResources () { const field = document.querySelector("#resources"); if (type === "qemu") { - const global = await requestAPI("/global/config/resources"); + const global = (await requestAPI("/global/config/resources")).resources; const user = await requestAPI("/user/config/resources"); let options = []; const globalCPU = global.cpu;