update config to api change

This commit is contained in:
2024-10-01 18:19:59 +00:00
parent f09ca0507e
commit 7d64715c30
2 changed files with 9 additions and 1 deletions

View File

@@ -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;