Skip to content

Commit

Permalink
fix: Enable ex_teal_dependency_container to include it's params. (#33)
Browse files Browse the repository at this point in the history
Teal should allow fields that have a list of fields as an option to include those nested fields as params.
  • Loading branch information
staylorwr committed Oct 27, 2020
1 parent 116c8b3 commit f96edc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ex_teal/resource/attributes.ex
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ defmodule ExTeal.Resource.Attributes do
fields =
__MODULE__.fields()
|> Enum.map(fn
%Field{options: %{fields: fields}} = f -> [f] ++ fields
%Field{} = f -> [f]
%Panel{fields: fields} -> fields
end)
Expand Down

0 comments on commit f96edc2

Please sign in to comment.