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

pull/1946/head
Nils Gereke 1 year ago committed by GitHub
parent d4edd432d8
commit 4f1cde97ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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}>

Loading…
Cancel
Save