mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-20 07:12:49 +12:00
fix: Patch for new Form Access Protocol (#77)
This commit is contained in:
parent
9c55b18a2c
commit
336b3c051f
1 changed files with 4 additions and 0 deletions
|
@ -963,6 +963,10 @@ defmodule AshPhoenix.FilterForm do
|
|||
def input_value(%{id: id}, _, :id), do: id
|
||||
def input_value(%{negated?: negated?}, _, :negated), do: negated?
|
||||
def input_value(%{operator: operator}, _, :operator), do: operator
|
||||
|
||||
def input_value(form, phoenix_form, :components) do
|
||||
to_form(form, phoenix_form, :components, [])
|
||||
end
|
||||
|
||||
def input_value(_, _, field) do
|
||||
raise "Invalid filter form field #{field}. Only :id, :negated, and :operator are supported"
|
||||
|
|
Loading…
Reference in a new issue