frontend-collective / frontend-collective/react-sortable-tree

return children array of a node {getFlatDataFromTree }

Open
#478 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.