I have the following code that I'm using in react-admin:
<ReferenceInput label="Animal" source="id"reference="animal">
<SelectInput optionText="type" choices={[ {id: '0', name: 'Cat' }, { id: '1', name: 'Dog'},]}/>
</ReferenceInput>
In that code it receive from my database the values '0' to a Cat and '1' to a dog and when I click in the dropDown it's show '0' and '1', but I want to show only Cat and Dog instead of '0' and '1' in my SelectInput.
I tried to use: choices={[ {id: '0', name: 'Cat' }, { id: '1', name: 'Dog'},]}
, but had no effect in the dropdown.
Does anyone know how I can do this?