fix(webui): proper PvPVariant check (#2585)
All checks were successful
Build Docker image / docker-arm64 (push) Successful in 53s
Build / build (push) Successful in 1m9s
Build Docker image / docker-amd64 (push) Successful in 1m2s

Closes #2584

Reviewed-on: #2585
Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
This commit is contained in:
AMelonInsideLemon 2025-08-04 05:18:45 -07:00 committed by Sainan
parent dd7bacd22e
commit ebfef52fb1

View File

@ -153,7 +153,7 @@ const getItemListsController: RequestHandler = (req, response) => {
} }
for (const [uniqueName, item] of Object.entries(ExportWeapons)) { for (const [uniqueName, item] of Object.entries(ExportWeapons)) {
if (item.partType) { if (item.partType) {
if (!item.excludeFromCodex) { if (!uniqueName.split("/")[7]?.startsWith("PvPVariant")) {
// not a pvp variant // not a pvp variant
if (!uniqueName.startsWith("/Lotus/Types/Items/Deimos/")) { if (!uniqueName.startsWith("/Lotus/Types/Items/Deimos/")) {
res.ModularParts.push({ res.ModularParts.push({