fix(webui): refresh inventory after changing server cheats (#1331)

Reviewed-on: OpenWF/SpaceNinjaServer#1331
This commit is contained in:
Sainan 2025-03-25 15:12:31 -07:00
parent 8221674098
commit 0fc1326255

View File

@ -967,6 +967,9 @@ function doChangeSettings() {
url: "/custom/config?" + window.authz,
contentType: "text/plain",
data: JSON.stringify(json, null, 2)
}).then(() => {
// A few cheats affect the inventory response which in turn may change what values we need to show
updateInventory();
});
});
}