Skip to content

Commit 0f925d3

Browse files
committed
Fixed bug
When name is number then `substring()` cannot be applied.
1 parent 83b02d5 commit 0f925d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ d3.xhr(routes.items).get(function (error, XMLHttpRequest) {
263263
group.append("svg:text")
264264
.attr("class", "nodetext")
265265
.text(function (d, i) {
266-
return (d.name.length < 11) ? d.name : d.name.substring(0, 10) + '...';
266+
return (d.name.length < 11) ? d.name : d.name.toString().substring(0, 10) + '...';
267267
}).style("text-anchor", "middle");
268268

269269

0 commit comments

Comments
 (0)