forked from OpenWF/SpaceNinjaServer
		
	fix(webui): erroring on empty archon shard slot
This commit is contained in:
		
							parent
							
								
									d25a969269
								
							
						
					
					
						commit
						ae832d0125
					
				@ -477,8 +477,10 @@ function updateInventory() {
 | 
			
		||||
 | 
			
		||||
                    const uniqueUpgrades = {};
 | 
			
		||||
                    (item.ArchonCrystalUpgrades ?? []).forEach(upgrade => {
 | 
			
		||||
                        uniqueUpgrades[upgrade.UpgradeType] ??= 0;
 | 
			
		||||
                        uniqueUpgrades[upgrade.UpgradeType] += 1;
 | 
			
		||||
                        if (upgrade) {
 | 
			
		||||
                            uniqueUpgrades[upgrade.UpgradeType] ??= 0;
 | 
			
		||||
                            uniqueUpgrades[upgrade.UpgradeType] += 1;
 | 
			
		||||
                        }
 | 
			
		||||
                    });
 | 
			
		||||
 | 
			
		||||
                    document.getElementById("crystals-list").innerHTML = "";
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user