-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
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
target and id are required #8704
Comments
Hi, and thanks for your question. As explained in the react-admin contributing guide, we use the GitHub issues for bugs and feature requests only. For support question ("How To", usage advice, or troubleshooting your own code), you have three options:
So I'm closing this issue, and inviting you to ask your question in one of the support channels above. |
Sure, but the bug report is also labelled as ' Something isn't working as expected. Please tell us!'. It is not working as expected. :P |
I'm really struggling to see how this can just be an issue with me though. If it's not a bug in the code, then surely there is something missing from the documentation.. |
Solution is to add a This does not appear anywhere in the ReferenceManyField documentation page and is not included in any of the examples. It looks to me like none of the examples should work and would produce the same error I received... I think this should be reopened to get the documentation fixed. |
@Dreamsorcerer The As you can see, it has a default value of The fact that you had to explicitely add it to you code probably comes from something specific to your implementation, but in most cases you should be able to omit it. |
Right, sorry, I must have been looking at the nav menu only. It doesn't have it's own section. Though I'd still suggest rewording it to something like "Source field used for mapping to reference (useful when a foreign key refers to something other than the record's id field)." The current description says it's the property to display, which is clearly wrong, it doesn't display anything from the property. |
Yes you are right, the docs could be better at explaining this prop. I'll reopen this issue as a documentation issue then. |
I'm really struggling to use ReferenceManyField. When I use it, the spinner just spins for several seconds and gives the 'target and id are required' error.
I can see with a breakpoint that id is undefined, but I can't tell where this id is meant to come from or what I can do to affect its value. I can't see anything in the documentation mentioning it.
The text was updated successfully, but these errors were encountered: