Skip to content

Commit

Permalink
Fixes parenting
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Sep 28, 2019
1 parent faa8a3a commit 3462275
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/views/nodes/branchOrTagFolderNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class BranchOrTagFolderNode extends ViewNode {
children.push(
new BranchOrTagFolderNode(
this.view,
this.parent!,
this.folderName ? this : this.parent!,
this.type,
this.repoPath,
folder.name,
Expand All @@ -64,8 +64,8 @@ export class BranchOrTagFolderNode extends ViewNode {
continue;
}

// Make sure to set ourselves as the parent
(folder.value as any).parent = this;
// Make sure to set the parent
(folder.value as any).parent = this.folderName ? this : this.parent!;
children.push(folder.value);
}

Expand Down

0 comments on commit 3462275

Please sign in to comment.