Skip to content

Commit

Permalink
TopologyService - use size() not lenght for d3 size comparison
Browse files Browse the repository at this point in the history
because apparently length is always 0 or 1
  • Loading branch information
himdel committed May 9, 2017
1 parent 7785975 commit 203fddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/services/topology_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ ManageIQ.angular.app.service('topologyService', function() {
var links = svg.selectAll("line");
links.style("opacity", "0.2");

if (nodes.length === selected.length) {
if (nodes.size() === selected.size()) {
found = false;
}
}
Expand Down

0 comments on commit 203fddc

Please sign in to comment.