Access children problem

give me :

give me :

i can’t access to the children of the object :

console.log(object.children[0]); → undefined

any idea ??

looks like a race condition. console.log just prints fixed references, by the time you clap them open they’re filled. that doesn’t necessarily mean they’re filled by the time you log. most likely if you console.log(object.children.length) it will be 0. in that case you need to await the loading process or whatever you’re doing to fetch and parse.