Skip to content

Commit ce66387

Browse files
committed
fix: properly only show dropdowns on related resources
closes #341
1 parent dc170f9 commit ce66387

File tree

1 file changed

+0
-6
lines changed
  • lib/ash_admin/components/resource

1 file changed

+0
-6
lines changed

lib/ash_admin/components/resource/form.ex

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -813,12 +813,6 @@ defmodule AshAdmin.Components.Resource.Form do
813813
_
814814
)
815815
when type in [Ash.Type.CiString, Ash.Type.String, Ash.Type.UUID, Ash.Type.Atom] do
816-
attribute =
817-
case form.source do
818-
%{type: :read} -> Map.put(attribute, :related_resource, assigns[:resource])
819-
_ -> attribute
820-
end
821-
822816
assigns =
823817
assign(assigns,
824818
attribute: attribute,

0 commit comments

Comments
 (0)