** (KeyError) key :options not found: Error on AshPhoenix.Form submit
This is my form
In my FormComponent:
The form is rendering and validations are working fine, however on submiting the form am getting
KeyError
:
If I change the form to use :let
:
and change the input field:
I get the following error:
What could be the issue? Is there something am missing?6 Replies
can you post some of the backtrace so we can see what line the error is coming from?
Here is the stacktrace:
This is the code in handle event and on line 87 in my FormComponent:
yes, this is a bug actually
GitHub
ash_phoenix/form.ex at v1.2.10 ยท ash-project/ash_phoenix
https://hexdocs.pm/ash_phoenix. Contribute to ash-project/ash_phoenix development by creating an account on GitHub.
that should be referring to the
options
key from the form originally provided to that function
This has been fixed in main, will release next week. Sorry about that ๐ We've had to do some adjusting to new patterns in phoenix 1.7.Oh I see
No worries I understand ๐ , thanks for your feedback