diff --git a/web/src/elements/TreeView.ts b/web/src/elements/TreeView.ts index 1604e0783..c1c7e2f89 100644 --- a/web/src/elements/TreeView.ts +++ b/web/src/elements/TreeView.ts @@ -169,7 +169,9 @@ export class TreeView extends LitElement { } return item; } else { - return this.createNode(path, tree[idx].childItems, level + 1); + const child = this.createNode(path, tree[idx].childItems, level + 1); + child.parent = tree[idx]; + return child; } }