I'm new to React and react-admin, so maybe I'm doing something wrong. My api returns records from MySQL and null fields are returned as "null". In the record list showing up on the client, the field is also showing "null". Can I translate this to blank on the front end or should the api return an empty string instead of null?
Here's the json results from the api:
{
"id": 79874,
"itemNumber": "PUM_10550101-2",
"amazonSku": null
}
and here's the list definition:
export const ItemList = props => (
<List {...props} filters={<ItemFilter />}>
<Datagrid rowClick="edit">
<TextField source="itemNumber" label="Item Number" />
<TextField source="amazonSku" label="Amazon Sku" />
</Datagrid>
</List>
);
and here's what it looks like when rendered:
Would like to just see blanks where the nulls are, if that makes sense. Thanks