web/elements: fix child items not having a parent set causing wrong paths
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
e892ed14da
commit
9f15ee8cb8
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Reference in New Issue