返回提交历史
Modified
static/webui/script.js
+3
-1
XFEstudio/XFESpaceNinjaServer
fix(webui): avoid sending getGuild?guildId=undefined request (#3732)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3732 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
bd1da917
代码差异
1 个文件
+3
-1
@@ -2235,7 +2235,9 @@ function translateInventoryDataToDom() {
2235
2235
document.getElementById("changeSyndicate").value = data.SupportedSyndicate ?? "";
2236
2236
2237
2237
if (single.getCurrentPath().startsWith("/webui/guildView")) {
2238
const guildReq = $.get("/custom/getGuild?guildId=" + window.guildId);
2238
const guildReq = window.guildId
2239
? $.get("/custom/getGuild?guildId=" + window.guildId)
2240
: { done: () => {}, fail: f => f() };
2239
2241
guildReq.done(guildData => {
2240
2242
window.itemListPromise.then(itemMap => {
2241
2243
document.getElementById("TechProjects-bulkAdd").classList.add("d-none");