From f128e4744bcb60c6ec295c68df1c1e612e932908 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 15 Sep 2019 04:13:06 -0400 Subject: [PATCH] Fixes parent chain with folder nodes --- src/views/nodes/branchOrTagFolderNode.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/nodes/branchOrTagFolderNode.ts b/src/views/nodes/branchOrTagFolderNode.ts index 932cab3..713bd20 100644 --- a/src/views/nodes/branchOrTagFolderNode.ts +++ b/src/views/nodes/branchOrTagFolderNode.ts @@ -51,7 +51,7 @@ export class BranchOrTagFolderNode extends ViewNode { children.push( new BranchOrTagFolderNode( this.view, - this, + this.parent!, this.type, this.repoPath, folder.name, @@ -64,6 +64,8 @@ export class BranchOrTagFolderNode extends ViewNode { continue; } + // Make sure to set ourselves as the parent + (folder.value as any).parent = this; children.push(folder.value); }