From d43e39d7b5ecb99b54de07357cbf03111a10d05d Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Mon, 2 Jun 2025 01:44:10 -0700 Subject: [PATCH] fix(webui): error when an unknown suit is max rank (#2109) Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2109 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- static/webui/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/webui/script.js b/static/webui/script.js index d8d30a41..718dc840 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -476,7 +476,7 @@ function updateInventory() { } let anyExaltedMissingXP = false; - if (item.XP >= maxXP && "exalted" in itemMap[item.ItemType]) { + if (item.XP >= maxXP && item.ItemType in itemMap && "exalted" in itemMap[item.ItemType]) { for (const exaltedType of itemMap[item.ItemType].exalted) { const exaltedItem = data.SpecialItems.find(x => x.ItemType == exaltedType); if (exaltedItem) {