Pārlūkot izejas kodu

Fixes parent chain with folder nodes

main
Eric Amodio pirms 5 gadiem
vecāks
revīzija
f128e4744b
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +3
    -1
      src/views/nodes/branchOrTagFolderNode.ts

+ 3
- 1
src/views/nodes/branchOrTagFolderNode.ts Parādīt failu

@ -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);
}

Notiek ielāde…
Atcelt
Saglabāt