Skip to content

Commit

Permalink
filter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Hall authored and Brian Hall committed Jan 2, 2025
1 parent 81e7d06 commit 35d6a86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
5 changes: 1 addition & 4 deletions src/components/MapView/LinkLine.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default class LinkLine extends PureComponent {
const { status } = link;

if (status === "vpn" && !filters.VPN) return null;
if (status === "fiber" && !filters.VPN) return null;
if (status === "fiber" && !filters.fiber) return null;

if (!fromNode || !toNode) {
return null;
Expand Down Expand Up @@ -84,9 +84,6 @@ export default class LinkLine extends PureComponent {
activeColor = "#03fcf8"
}

if (status === "vpn"){

}

if (status === "fiber"||status === "vpn"||status === "active"||status === "60GHz") {
if (filters.backbone && !isBackbone(link))
Expand Down
10 changes: 5 additions & 5 deletions src/reducers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ function addGraphData(nodes, links, sectors) {
linksByNodeId[link.from].push(link);
linksByNodeId[link.to].push(link);

if (link.status === "vpn") {
vpnCounter++;
if (link.status === "active") {
activeCounter++;
} else if (link.status === "fiber") {
vpnCounter++;
} else if (link.status === "active") {
activeCounter++;
fiberCounter++;
} else if (link.status === "vpn") {
vpnCounter++;
}
});

Expand Down

0 comments on commit 35d6a86

Please sign in to comment.