fix(webui): unable to add relics #1222

Merged
Sainan merged 1 commits from webui-relics into main 2025-03-17 10:06:26 -07:00
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)) {
if (uniqueName.substring(0, 18) != "/Lotus/Types/Game/") {
const mod: ListedItem = {
uniqueName,
name: getString(arcane.name, lang)
@ -201,6 +202,7 @@ const getItemListsController: RequestHandler = (req, response) => {
}
res.mods.push(mod);
}
}
for (const [uniqueName, syndicate] of Object.entries(ExportSyndicates)) {
res.Syndicates.push({
uniqueName,

View File

@ -230,7 +230,7 @@ function fetchItemList() {
if (type == "Syndicates" && item.uniqueName.startsWith("RadioLegion")) {
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");
option.setAttribute("data-key", item.uniqueName);
option.value = item.name;