Closed azlanali076 closed 6 months ago
This is what you should have:
[
{
id: 1,
name: 'Child',
mid: 2,
fid: 3
},
{
id: 2,
pids: [3],
name: 'Mother'
},
{
id: 3,
pids: [2],
name: 'Father'
}
]
@ZornitsaPesheva i know but what if for some reason i cannot pass pids
You should pass pids to the family tree js. It cannot work without pids.
If we have a node of id 1 and it has a mother id 2 and father id 3 we are creating nodes like
upon clicking on child node in tree to expand parents its crashing the whole tree