Update Params in Nested Form with Union type
I have a code snippet that looks as follows:
The given values are
["A"] or ["A", "B"]. Using IO.inspect, I can see that the Map.put call works properly. However, in the result of the update_params call, the raw_params field is updated, but the params field is not.
Removing the only_touched?: true causes an error during form validation (see stacktrace in thread). To me this suggests that it is a validation error someway. The my_field attribute is defined as
which, admittedly, is slightly complicated.
Does anyone have a clue what might be going wrong here?5 Replies
Form validation error stacktrace:
Can you make sure you're on the latest
ash_phoenix version?
And really all packagesWe're working on that; might try whether I can merge that in 🙂
Tested with current versions, same behavior
😢
Can you make a reproduction and open an issue?
Sure!
Will do tomorrow though, already late here 🙂