Ash Phoenix Form potential bug

Hey
AshPhoenix.Form.validate(socket.assigns.form, params)
|> AshPhoenix.Form.submit()
AshPhoenix.Form.validate(socket.assigns.form, params)
|> AshPhoenix.Form.submit()
produces
** (KeyError) key :options not found in: #AshPhoenix.Form
** (KeyError) key :options not found in: #AshPhoenix.Form
However, this doesn't:
validated_form = AshPhoenix.Form.validate(socket.assigns.form, params)

validated_form.source
|> AshPhoenix.Form.submit()
validated_form = AshPhoenix.Form.validate(socket.assigns.form, params)

validated_form.source
|> AshPhoenix.Form.submit()
Is this expected?
3 Replies
ZachDaniel
ZachDaniel3y ago
Are you in the latest version of ash_phoenix?
kingdomcoder
kingdomcoderOP3y ago
Yes, I am. 1.2.10
ZachDaniel
ZachDaniel3y ago
1.2.11 is the latest version

Did you find this page helpful?