Skip to content

Commit addab7b

Browse files
author
xiangyu
committed
resolve: #19 collapse the lowest headings
1 parent 65c331f commit addab7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

addon/chrome/content/treeView.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@
275275
lineIndex: node.model.lineIndex,
276276
endIndex: node.model.endIndex,
277277
isDirectory: node.children.length > 0,
278-
expanded: true,
278+
expanded:
279+
node.children.filter((n) => n.model.rank < 7).length !== 0,
279280
parentId:
280281
node.model.rank > 1 ? String(node.parent.model.id) : undefined,
281282
});

0 commit comments

Comments
 (0)