Update Params in Nested Form with Union type
I have a code snippet that looks as follows:
The given values are
Removing the
which, admittedly, is slightly complicated.
Does anyone have a clue what might be going wrong here?
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 aswhich, admittedly, is slightly complicated.
Does anyone have a clue what might be going wrong here?
