Skip to content

Commit

Permalink
Feature/bump dependencies (#92)
Browse files Browse the repository at this point in the history
* Bump react to version 16.4.1

* Small fix in graph.helper

* Bump d3 to 5.5.0
  • Loading branch information
danielcaldas authored Jul 25, 2018
1 parent 6e1201c commit a9285c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
]
},
"peerDependencies": {
"d3": "^4.10.2",
"react": "^15.6.1"
"d3": "^5.5.0",
"react": "^16.4.1"
},
"devDependencies": {
"@cypress/webpack-preprocessor": "1.1.3",
Expand Down
2 changes: 1 addition & 1 deletion src/components/graph/graph.helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ function getLeafNodeConnections(startingNodeId, currentConnections) {
* @memberof Graph/helper
*/
function getNodeCardinality(nodeId, linksMatrix) {
const nodeConnectivityList = Object.values(linksMatrix[nodeId]);
const nodeConnectivityList = Object.values(linksMatrix[nodeId] || []);

return nodeConnectivityList.reduce((cardinality, nodeConnectivity) => cardinality + nodeConnectivity, 0);
}
Expand Down

0 comments on commit a9285c2

Please sign in to comment.