From 079f9ebbdff64cdd5b0d239242dd4863d266467e Mon Sep 17 00:00:00 2001 From: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Date: Fri, 7 Feb 2025 06:46:07 -0800 Subject: [PATCH] fix(webui): max rank up all suits (#917) Fixes #914 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/917 Reviewed-by: Sainan Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> --- static/webui/script.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/webui/script.js b/static/webui/script.js index 93b87d63..0d89cca5 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -627,6 +627,9 @@ function maxRankAllEquipment(categories) { } if (category === "Suits") { if ("exalted" in itemMap[item.ItemType]) { + if (!batchData["SpecialItems"]) { + batchData["SpecialItems"] = []; + } for (const exaltedType of itemMap[item.ItemType].exalted) { const exaltedItem = data["SpecialItems"].find(x => x.ItemType == exaltedType); if (exaltedItem) {