Skip to content

Commit 33116ad

Browse files
committed
Fix issue with @subchildren
This commit fixes an issue with `@subchildren` preventing grandchildren from being shown.
1 parent 88c2afc commit 33116ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ DocMapInfo.prototype.getCurrentTree = function(){
406406
//
407407
var getChildren = this.getChildren.bind(this),
408408
getNestedDocObject = this.getNestedDocObject.bind(this);
409-
409+
410410
var self = this;
411411
var cur = this.getCurrent();
412412
var curChildren = this.getNestedChildren(cur);
@@ -415,7 +415,7 @@ DocMapInfo.prototype.getCurrentTree = function(){
415415
if(docObject.name === cur.name) {
416416
if(cur.subchildren){
417417
curChildren.forEach(function(child){
418-
if(child.docObject){
418+
if (child.docObject && !child.children) {
419419
child.children = self.getNestedChildren(child.docObject);
420420
}
421421
});

0 commit comments

Comments
 (0)