mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 21:59:50 +01:00
fix: total servers only representing last node (#1936)
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user