mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-19 06:42:47 +12:00
fix: new_params replaced with updated changeset_params (#129)
This commit is contained in:
parent
ae1a2d0aa2
commit
4df9a007b4
1 changed files with 3 additions and 3 deletions
|
@ -1124,18 +1124,18 @@ defmodule AshPhoenix.Form do
|
|||
changeset_params,
|
||||
source_opts
|
||||
)
|
||||
|> add_errors_for_unhandled_params(new_params)
|
||||
|> add_errors_for_unhandled_params(changeset_params)
|
||||
end
|
||||
|
||||
%{
|
||||
form
|
||||
| source: new_source,
|
||||
forms: forms,
|
||||
params: new_params,
|
||||
params: changeset_params,
|
||||
added?: form.added?,
|
||||
errors: !!opts[:errors],
|
||||
submit_errors: nil,
|
||||
touched_forms: touched_forms(forms, new_params, touched_forms: form.touched_forms)
|
||||
touched_forms: touched_forms(forms, changeset_params, touched_forms: form.touched_forms)
|
||||
}
|
||||
|> set_validity()
|
||||
|> set_changed?()
|
||||
|
|
Loading…
Reference in a new issue