fix: total servers only representing last node (#1936)

This commit is contained in:
Nils Gereke
2023-09-09 13:04:41 +00:00
committed by GitHub
parent d4edd432d8
commit 4f1cde97ec

View File

@@ -23,7 +23,7 @@ export default function Component({ service }) {
} }
const totalServers = nodesData.data.reduce((total, node) => 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 ( return (
<Container service={service}> <Container service={service}>