返回提交历史
Modified
static/webui/script.js
+4
-2
XFEstudio/SpaceNinjaServer
fix(webui): erroring on empty archon shard slot
ae832d01
代码差异
1 个文件
+4
-2
@@ -477,8 +477,10 @@ function updateInventory() {
477
477
478
478
const uniqueUpgrades = {};
479
479
(item.ArchonCrystalUpgrades ?? []).forEach(upgrade => {
480
uniqueUpgrades[upgrade.UpgradeType] ??= 0;
481
uniqueUpgrades[upgrade.UpgradeType] += 1;
480
if (upgrade) {
481
uniqueUpgrades[upgrade.UpgradeType] ??= 0;
482
uniqueUpgrades[upgrade.UpgradeType] += 1;
483
}
482
484
});
483
485
484
486
document.getElementById("crystals-list").innerHTML = "";