mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 08:20:58 +00:00 
			
		
		
		
	fix: total servers only representing last node (#1936)
This commit is contained in:
		
							parent
							
								
									d4edd432d8
								
							
						
					
					
						commit
						4f1cde97ec
					
				@ -23,7 +23,7 @@ export default function Component({ service }) {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  const totalServers = nodesData.data.reduce((total, node) => 
 | 
			
		||||
    node.attributes?.relationships?.servers?.data?.length ?? 0 + total, 0);
 | 
			
		||||
    (node.attributes?.relationships?.servers?.data?.length ?? 0) + total, 0);
 | 
			
		||||
 | 
			
		||||
  return (
 | 
			
		||||
    <Container service={service}>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user