diff --git a/lib/ash_admin/components/resource/form.ex b/lib/ash_admin/components/resource/form.ex index 86428d9..dce50c4 100644 --- a/lib/ash_admin/components/resource/form.ex +++ b/lib/ash_admin/components/resource/form.ex @@ -262,18 +262,18 @@ defmodule AshAdmin.Components.Resource.Form do
- <%= if relationship not in @skip and @argument.name not in @skip do %> + <%= if relationship not in @skip and argument.name not in @skip do %> <%= render_relationship_input( assigns, - Ash.Resource.Info.relationship(@form.source.resource, @relationship), + Ash.Resource.Info.relationship(@form.source.resource, relationship), @form, - @argument, + argument, opts ) %> <% end %>