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 722dcaf commit 6ad1edbCopy full SHA for 6ad1edb
packages/core/src/uncontrolledEnvironment/UncontrolledTreeEnvironment.tsx
@@ -132,7 +132,7 @@ export const UncontrolledTreeEnvironment = React.forwardRef<
132
// move old items out
133
for (const item of items) {
134
const parent = Object.values(currentItems).find(potentialParent =>
135
- potentialParent.children?.includes(item.index)
+ potentialParent?.children?.includes?.(item.index)
136
);
137
138
if (!parent) {
0 commit comments