In react-admin, I have an input whose source is a list of objects.
<CheckboxGroupInput source="binded_cameras" choices={choices}/>
The binded_cameras list looks like this:
"binded_cameras": [
{
"id": 1,
"name": "Cam 1",
"url": "dummyurl.com"
},
{
"id": 4,
"name": "Cam 2",
"url": "dummyurl.com"
}
]
I am trying to get only the list of id to deal with.
I tried binded_cameras.id but of course it did not work.
How do I manipulate this list of objects, and generate only a list of ids?
list of idsas thesource?