forked from OpenWF/SpaceNinjaServer
		
	fix(webui): ignore empty ModularParts array
This commit is contained in:
		
							parent
							
								
									86a2b57e22
								
							
						
					
					
						commit
						b19fda66a2
					
				@ -217,7 +217,7 @@ function updateInventory() {
 | 
			
		||||
                        if (item.ItemName) {
 | 
			
		||||
                            td.textContent = item.ItemName + " (" + td.textContent + ")";
 | 
			
		||||
                        }
 | 
			
		||||
                        if (item.ModularParts) {
 | 
			
		||||
                        if (item.ModularParts && item.ModularParts.length) {
 | 
			
		||||
                            td.textContent += " [";
 | 
			
		||||
                            item.ModularParts.forEach(part => {
 | 
			
		||||
                                td.textContent += " " + (itemMap[part]?.name ?? part) + ",";
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user