lukasbach/react-complex-tree

Cannot read properties of undefined (reading 'index')

yaximi111 opened this issue · 3 comments

I'm not exactly sure why that issue comes up, I suppose it means your data provider returns undefined for certain item IDs. Nevertheless, I suppose the additional check doesn't hurt where you proposed it, I added it in the latest update.

sorry The data returned by the backend is nested, and there are two pieces of the same data in it, and I expanded them all and one of them became undefined.
Thank you for your reply!

I've solved the problem with it being data