fix(webui): unable to add relics
All checks were successful
Build / build (20) (push) Successful in 42s
Build / build (22) (push) Successful in 1m5s
Build / build (18) (push) Successful in 1m3s
Build / build (18) (pull_request) Successful in 42s
Build / build (20) (pull_request) Successful in 1m6s
Build / build (22) (pull_request) Successful in 1m1s

This commit is contained in:
Sainan 2025-03-17 15:03:29 +01:00
parent 6f3f1fe5b9
commit 21d93cae2f
2 changed files with 10 additions and 8 deletions

View File

@ -192,6 +192,7 @@ const getItemListsController: RequestHandler = (req, response) => {
}); });
} }
for (const [uniqueName, arcane] of Object.entries(ExportArcanes)) { for (const [uniqueName, arcane] of Object.entries(ExportArcanes)) {
if (uniqueName.substring(0, 18) != "/Lotus/Types/Game/") {
const mod: ListedItem = { const mod: ListedItem = {
uniqueName, uniqueName,
name: getString(arcane.name, lang) name: getString(arcane.name, lang)
@ -201,6 +202,7 @@ const getItemListsController: RequestHandler = (req, response) => {
} }
res.mods.push(mod); res.mods.push(mod);
} }
}
for (const [uniqueName, syndicate] of Object.entries(ExportSyndicates)) { for (const [uniqueName, syndicate] of Object.entries(ExportSyndicates)) {
res.Syndicates.push({ res.Syndicates.push({
uniqueName, uniqueName,

View File

@ -230,7 +230,7 @@ function fetchItemList() {
if (type == "Syndicates" && item.uniqueName.startsWith("RadioLegion")) { if (type == "Syndicates" && item.uniqueName.startsWith("RadioLegion")) {
item.name += " (" + item.uniqueName + ")"; item.name += " (" + item.uniqueName + ")";
} }
if (item.uniqueName.substr(0, 18) != "/Lotus/Types/Game/" && item.badReason != "notraw") { if (item.badReason != "notraw") {
const option = document.createElement("option"); const option = document.createElement("option");
option.setAttribute("data-key", item.uniqueName); option.setAttribute("data-key", item.uniqueName);
option.value = item.name; option.value = item.name;