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 = {};
 | 
					                    const uniqueUpgrades = {};
 | 
				
			||||||
                    (item.ArchonCrystalUpgrades ?? []).forEach(upgrade => {
 | 
					                    (item.ArchonCrystalUpgrades ?? []).forEach(upgrade => {
 | 
				
			||||||
 | 
					                        if (upgrade) {
 | 
				
			||||||
                            uniqueUpgrades[upgrade.UpgradeType] ??= 0;
 | 
					                            uniqueUpgrades[upgrade.UpgradeType] ??= 0;
 | 
				
			||||||
                            uniqueUpgrades[upgrade.UpgradeType] += 1;
 | 
					                            uniqueUpgrades[upgrade.UpgradeType] += 1;
 | 
				
			||||||
 | 
					                        }
 | 
				
			||||||
                    });
 | 
					                    });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    document.getElementById("crystals-list").innerHTML = "";
 | 
					                    document.getElementById("crystals-list").innerHTML = "";
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user