Skip to content

Commit

Permalink
fix: only add leafs to pinned section
Browse files Browse the repository at this point in the history
  • Loading branch information
thielpa committed Feb 25, 2025
1 parent 9b75150 commit 8a82c3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class BranchTableComponent {

nodeMap.set(currentPath, newNode);

if (branch.isPinned) {
if (branch.isPinned && isLeaf) {
rootNodes[0].children!.push(newNode);
}

Expand Down

0 comments on commit 8a82c3d

Please sign in to comment.