We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 88c2afc + 33116ad commit ea581dbCopy full SHA for ea581db
templates/helpers.js
@@ -406,7 +406,7 @@ DocMapInfo.prototype.getCurrentTree = function(){
406
//
407
var getChildren = this.getChildren.bind(this),
408
getNestedDocObject = this.getNestedDocObject.bind(this);
409
-
+
410
var self = this;
411
var cur = this.getCurrent();
412
var curChildren = this.getNestedChildren(cur);
@@ -415,7 +415,7 @@ DocMapInfo.prototype.getCurrentTree = function(){
415
if(docObject.name === cur.name) {
416
if(cur.subchildren){
417
curChildren.forEach(function(child){
418
- if(child.docObject){
+ if (child.docObject && !child.children) {
419
child.children = self.getNestedChildren(child.docObject);
420
}
421
});
0 commit comments