Skip to content

Commit

Permalink
resolve: #19 collapse the lowest headings
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyu committed May 18, 2022
1 parent 65c331f commit addab7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addon/chrome/content/treeView.html
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@
lineIndex: node.model.lineIndex,
endIndex: node.model.endIndex,
isDirectory: node.children.length > 0,
expanded: true,
expanded:
node.children.filter((n) => n.model.rank < 7).length !== 0,
parentId:
node.model.rank > 1 ? String(node.parent.model.id) : undefined,
});
Expand Down

0 comments on commit addab7b

Please sign in to comment.