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

Commit

Permalink
fix replicated nodes badges (#448)
Browse files Browse the repository at this point in the history
* fix replicated nodes badges

* v2.29.1
  • Loading branch information
jacekkolasa committed Sep 21, 2022
1 parent 5bea745 commit 040b6bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@netdata/dashboard",
"version": "2.29.0",
"version": "2.29.1",
"homepage": ".",
"main": "./lib/src/index-npm.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/components/sidebar/space/nodes.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const getNodes = (hosts, hostname, hostsStatus) => {
.map(({ hostname }, index) => ({
hostname,
url: getNodeUrl(baseUrl, hostname),
status: hostsStatus[index + 1].reachable,
status: hostsStatus.find(host => host.hostname === hostname)?.reachable || false,
}))
.sort((a, b) => naturalSortCompare(a.hostname, b.hostname))

Expand Down

0 comments on commit 040b6bd

Please sign in to comment.