Skip to content

Commit

Permalink
fix sunburst error. add less to package.json because less-loader comp…
Browse files Browse the repository at this point in the history
…lains if it's not there.
  • Loading branch information
williaster committed Mar 28, 2016
1 parent 74c72b3 commit 1aee5b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions dashed/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"imports-loader": "^0.6.5",
"jquery": "^2.2.1",
"jquery-ui": "^1.10.5",
"less": "^2.6.1",
"less-loader": "^2.2.2",
"nvd3": "1.8.2",
"react": "^0.14.7",
Expand Down
2 changes: 1 addition & 1 deletion dashed/assets/visualizations/sunburst.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function sunburstVis(slice) {
}
var currentNode = root;
for (var j = 0; j < levels.length; j++) {
var children = currentNode.children;
var children = currentNode.children || [];
var nodeName = levels[j];
// If the next node has the name "0", it will
var isLeafNode = (j >= levels.length - 1) || levels[j+1] === 0;
Expand Down

0 comments on commit 1aee5b7

Please sign in to comment.