I am encountering a problem in grouping. Tried to sort it but what I need to grouped are data with nested children on it. And I wanted it to be grouped by its parent node. Would this be possible using AutoComplete?
data is like as follows:
[{
name: "1"
parent: null
children: [
{
name: "1.1"
parent: "1"
},
{
name: "1.2"
parent: "1"
}
]
}]
with this kind of data it shows this error:
Material-UI: The options provided combined with the groupBymethod of Autocomplete returns duplicated headers. You can solve the issue by sorting the options with the output ofgroupBy.
Is there a way for me to have no duplicates and group them all by their specified parent?