Skip to content

Commit 0b1effc

Browse files
johannaleeLodin
andauthored
Update README.md
Co-Authored-By: Vlad Rindevich <[email protected]>
1 parent 640b745 commit 0b1effc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ function* treeWalker(refresh) {
260260
}
261261
: id;
262262

263-
if (children?.length !== 0 && isOpened) {
264-
for (let i = children?.length - 1; i >= 0; i--) {
263+
if (children && children.length !== 0 && isOpened) {
264+
for (let i = children.length - 1; i >= 0; i--) {
265265
stack.push({
266266
nestingLevel: nestingLevel + 1,
267267
node: children[i],

0 commit comments

Comments
 (0)