fix(webui): refresh inventory after changing server cheats (#1331)
All checks were successful
Build / build (20) (push) Successful in 44s
Build / build (18) (push) Successful in 1m14s
Build Docker image / docker (push) Successful in 41s
Build / build (22) (push) Successful in 1m24s

Reviewed-on: #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();
});
});
}