We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What you were expecting:
I want to use a <SimpleList> inside an <ArrayField>, but it's not working.
<SimpleList>
<ArrayField>
const UserShow = ({ permissions, ...props }) => ( <Show {...props}> <TextField source="id" /> <TextField source="name" /> <ArrayField source="skills"> <SimpleList primaryText={(record) => record.name} /> </ArrayField> <ArrayField source="skills"> <SingleFieldList> <ChipField source="name" /> </SingleFieldList> </ArrayField> </Show> );
What happened instead:
The <SimpleList> is rendered empty. It's not the case with the <SingleFieldList>.
<SingleFieldList>
Steps to reproduce:
I've written an example on CodeSandbox: https://codesandbox.io/s/sweet-mendeleev-jq98y?file=/src/users/UserShow.tsx.
Related code:
The <ArrayField> computes a total of null. But the <SimpleList> is not rendered if the total is not > 0.
null
react-admin/packages/ra-ui-materialui/src/field/ArrayField.tsx
Line 168 in bd409a5
react-admin/packages/ra-ui-materialui/src/list/SimpleList.tsx
Line 123 in 77be726
Environment
The text was updated successfully, but these errors were encountered:
Fixed by #6975
Sorry, something went wrong.
No branches or pull requests
What you were expecting:
I want to use a
<SimpleList>
inside an<ArrayField>
, but it's not working.What happened instead:
The
<SimpleList>
is rendered empty. It's not the case with the<SingleFieldList>
.Steps to reproduce:
I've written an example on CodeSandbox: https://codesandbox.io/s/sweet-mendeleev-jq98y?file=/src/users/UserShow.tsx.
Related code:
The
<ArrayField>
computes a total ofnull
. But the<SimpleList>
is not rendered if the total is not > 0.react-admin/packages/ra-ui-materialui/src/field/ArrayField.tsx
Line 168 in bd409a5
react-admin/packages/ra-ui-materialui/src/list/SimpleList.tsx
Line 123 in 77be726
Environment
The text was updated successfully, but these errors were encountered: