Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
When name is number then `substring()` cannot be applied.
  • Loading branch information
githubjeka committed Jun 20, 2015
1 parent 83b02d5 commit 0f925d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ d3.xhr(routes.items).get(function (error, XMLHttpRequest) {
group.append("svg:text")
.attr("class", "nodetext")
.text(function (d, i) {
return (d.name.length < 11) ? d.name : d.name.substring(0, 10) + '...';
return (d.name.length < 11) ? d.name : d.name.toString().substring(0, 10) + '...';
}).style("text-anchor", "middle");


Expand Down

0 comments on commit 0f925d3

Please sign in to comment.