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:
Using an ArrayField + SingleFieldListfor embedded data that doesn't have an id prop should work without console errors
What happened instead:
I get this error in the console: Warning: Each child in a list should have a unique "key" prop.
Warning: Each child in a list should have a unique "key" prop.
Steps to reproduce:
Related code:
https://codesandbox.io/s/stoic-glade-hs0dpi?file=/src/posts/PostShow.tsx:1269-1446
Other information:
This is where the key is set based on the id, which doesn't exist in this case:
https://github.com/marmelab/react-admin/blob/master/packages/ra-ui-materialui/src/list/SingleFieldList.tsx#L102
Environment
The text was updated successfully, but these errors were encountered:
Duplicate of #7541
The fix should be similar to #7548 and just one or two lines
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What you were expecting:
Using an ArrayField + SingleFieldListfor embedded data that doesn't have an id prop should work without console errors
What happened instead:
I get this error in the console:
Warning: Each child in a list should have a unique "key" prop.
Steps to reproduce:
Related code:
Other information:
This is where the key is set based on the id, which doesn't exist in this case:
https://github.com/marmelab/react-admin/blob/master/packages/ra-ui-materialui/src/list/SingleFieldList.tsx#L102
Environment
The text was updated successfully, but these errors were encountered: