Skip to content

Commit

Permalink
Fix map.field notation warning on Elixir 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
kianmeng committed Oct 17, 2024
1 parent b6f618d commit 07fff75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix_ecto/html.ex
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ if Code.ensure_loaded?(Phoenix.HTML) do

def input_type(%{types: types}, _, field) do
type = Map.get(types, field, :string)
type = if Ecto.Type.primitive?(type), do: type, else: type.type
type = if Ecto.Type.primitive?(type), do: type, else: type.type()

case type do
:integer -> :number_input
Expand Down

0 comments on commit 07fff75

Please sign in to comment.