We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adc0ccf commit 4ca5c7dCopy full SHA for 4ca5c7d
src/utils/tree-data-utils.ts
@@ -61,7 +61,7 @@ const getNodeDataAtTreeIndexOrNextIndex = ({
61
}
62
63
// Add one and continue for nodes with no children or hidden children
64
- if (!node.children || (ignoreCollapsed && node.expanded !== true)) {
+ if (!node?.children || (ignoreCollapsed && node?.expanded !== true)) {
65
return { nextIndex: currentIndex + 1 }
66
67
0 commit comments