Skip to content
This repository was archived by the owner on Apr 19, 2024. It is now read-only.

Commit 040b6bd

Browse files
authored
fix replicated nodes badges (#448)
* fix replicated nodes badges * v2.29.1
1 parent 5bea745 commit 040b6bd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@netdata/dashboard",
3-
"version": "2.29.0",
3+
"version": "2.29.1",
44
"homepage": ".",
55
"main": "./lib/src/index-npm.js",
66
"files": [

src/components/sidebar/space/nodes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const getNodes = (hosts, hostname, hostsStatus) => {
3535
.map(({ hostname }, index) => ({
3636
hostname,
3737
url: getNodeUrl(baseUrl, hostname),
38-
status: hostsStatus[index + 1].reachable,
38+
status: hostsStatus.find(host => host.hostname === hostname)?.reachable || false,
3939
}))
4040
.sort((a, b) => naturalSortCompare(a.hostname, b.hostname))
4141

0 commit comments

Comments
 (0)