Skip to content

Commit 7410ab4

Browse files
committed
Excludes splatted nodes from depth limits
1 parent 7146385 commit 7410ab4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/views/viewBase.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,11 @@ export abstract class ViewBase<
696696
}
697697
}
698698

699+
// If the node is splatted don't count it against the depth
700+
if (node.splatted) {
701+
depth--;
702+
}
703+
699704
children = await node.getChildren();
700705
if (!children.length) continue;
701706

0 commit comments

Comments
 (0)