frontend-collective / frontend-collective/react-sortable-tree
How to Add/Remove child with Flat Data?
- Dominant language
- JavaScript
- Stars
- 5k
- Forks
- 914
- PR merge metrics
- No merged PRs in 30d
Description
Hi support team,
I'm trying to use `getTreeFromFlatData` to get flat data to save database.
Like this tutorial:
https://frontend-collective.github.io/react-sortable-tree/storybook/?selectedKind=Basics&selectedStory=treeData%20import%2Fexport&full=0&addons=0&stories=1&panelRight=0
I'm adding button 'Add' to tree like this:
https://frontend-collective.github.io/react-sortable-tree/storybook/?selectedKind=Basics&selectedStory=Add%20and%20remove%20nodes%20programmatically&full=0&addons=0&stories=1&panelRight=0
It's working, but, parentid is always null.
Help me please
Thank you
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.