frontend-collective / frontend-collective/react-sortable-tree
Question: I got errors while trying to change title after move node.
Open
- Dominant language
- JavaScript
- Stars
- 5k
- Forks
- 914
- PR merge metrics
- No merged PRs in 30d
Description
onMoveNode={args => {
const { prevPath, nextPath, node, nextParentNode, nextTreeIndex } = args;
this.setState(state => ({
treeData: changeNodeAtPath({
treeData: state.treeData,
nextPath,
getNodeKey,
newNode: { ...nextParentNode, name: "moved!" }
})
}));
https://codesandbox.io/s/y0172vx5m1
//ERROR showed//
index.esm.js:914 Uncaught TypeError: Cannot read property 'length' of undefined
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.