mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-20 07:12:49 +12:00
fix: include forms when !touched_forms
This commit is contained in:
parent
d9f2ed5e9a
commit
1873357f61
1 changed files with 2 additions and 2 deletions
|
@ -1549,7 +1549,7 @@ defmodule AshPhoenix.Form do
|
|||
Map.put(params, for_name, nested_params)
|
||||
end
|
||||
else
|
||||
if is_touched?(form, key) do
|
||||
if is_touched?(form, key) || !only_touched? do
|
||||
Map.put(params, for_name, nil)
|
||||
else
|
||||
params
|
||||
|
@ -1590,7 +1590,7 @@ defmodule AshPhoenix.Form do
|
|||
end)
|
||||
end
|
||||
else
|
||||
if is_touched?(form, key) do
|
||||
if is_touched?(form, key) || !only_touched? do
|
||||
Map.put(params, for_name, [])
|
||||
else
|
||||
params
|
||||
|
|
Loading…
Reference in a new issue