-
Notifications
You must be signed in to change notification settings - Fork 45
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
ReferenceArrayInput works on Edit, but not Create #25
Comments
I encounter this problem as well and took a look under the hood. The Values are passed to the dataProvider in "valuesIds". I understand that the convention for naming source of ReferenceArrayInput is "fieldname + Ids". I propose to rename the key to remove Ids : On CREATE (buildCreateVariables) or UPDATE (buildUpdateVariables), if we detect that the field contains an array, we should look for the field corresponding to "values" instead "valuesIds". I'd suggest we remove the "Ids" part of the key. |
Dont know if I can propose a PR, but adding this line in buildCreateVariables and buildUpdateVariables fix the problem
@Weakky Could you please take a look or guide us in order to fix this ? |
I got this working by removing the
Hey @marcantoine thanks for this fork. |
This is demonstrated on the code sandbox.
To reproduce:
Expected behaviour: the Values are saved to the new Option.
Result: the Values are not be saved to the new Option.
Result: This works as expected.
With some guidance, I could have a crack at fixing this.
The text was updated successfully, but these errors were encountered: