瀏覽代碼

Fixes parenting

main
Eric Amodio 5 年之前
父節點
當前提交
3462275b4c
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      src/views/nodes/branchOrTagFolderNode.ts

+ 3
- 3
src/views/nodes/branchOrTagFolderNode.ts 查看文件

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

Loading…
取消
儲存