Skip to content

Commit

Permalink
Update lib/phoenix_ecto/html.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Feb 6, 2024
1 parent a9e1a3d commit 0ea46ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/phoenix_ecto/html.ex
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ if Code.ensure_loaded?(Phoenix.HTML) do
raise ArgumentError, "expected #{what} to be a map/struct, got: #{inspect(value)}"
end

defp form_for_errors(%Ecto.Changeset{}, nil = _action), do: []
defp form_for_errors(%Ecto.Changeset{}, :ignore = _action), do: []
defp form_for_errors(_changeset, nil = _action), do: []
defp form_for_errors(_changeset, :ignore = _action), do: []
defp form_for_errors(%Ecto.Changeset{errors: errors}, _action), do: errors

defp form_for_hidden(%{__struct__: module} = data) do
Expand Down

0 comments on commit 0ea46ed

Please sign in to comment.