frontend-collective / frontend-collective/react-sortable-tree
return children array of a node {getFlatDataFromTree }
Open
- Dominant language
- JavaScript
- Stars
- 5k
- Forks
- 914
- PR merge metrics
- No merged PRs in 30d
Description
Hello, i've been trying to use getFlatDataFromTree to return children and parent for each node, the parent was done using path, {parent: path.length > 1 ? path[path.length - 2] : null} but as for the children, im trying to show all of them as an array, apparently path only works backwards, so what is the way to achieve that?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.