We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a002928 commit d41acc0Copy full SHA for d41acc0
src/static-tree-source.ts
@@ -22,9 +22,9 @@ class StaticTreeSource<T> implements TreeSource<T> {
22
if (parentId !== null) {
23
this.childrenData[parentId].push(child);
24
}
25
+ const childTrail = [child, ...trail];
26
+ this.trailsData[child.id] = childTrail;
27
if (child.children) {
- const childTrail = [child, ...trail];
- this.trailsData[child.id] = childTrail;
28
walkTree(child.children, childTrail);
29
30
0 commit comments