mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-06 20:28:48 +00:00
fix: total servers only representing last node (#1936)
This commit is contained in:
parent
d4edd432d8
commit
4f1cde97ec
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue