diff --git a/src/components/MapView/LinkLine.js b/src/components/MapView/LinkLine.js index 1b6d384..488f8ac 100644 --- a/src/components/MapView/LinkLine.js +++ b/src/components/MapView/LinkLine.js @@ -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; @@ -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)) diff --git a/src/reducers/index.js b/src/reducers/index.js index 44dfb1e..b3f1faa 100644 --- a/src/reducers/index.js +++ b/src/reducers/index.js @@ -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++; } });