Display only relevant data on nested table
Hey all. I have a scenario where in which I've created a table which will ideally be used for both the parent table and the nested table. They will ideally use the same data
data?.records
. Below I'm rendering just a single object of legs
for all parents (test[2]
), but I'd ideally want each parent to only display its relevant legs.
The app looks like the following:
And the data is
I presume I need to pass the parent index to the child, but how?0 Replies