fix: don't hide fields required for managing relationships

This commit is contained in:
Zach Daniel 2023-12-27 07:15:51 -05:00
parent 6d4c7ee63e
commit 92bb43d7ed

View file

@ -171,7 +171,7 @@ defmodule AshAdmin.Components.Resource.Form do
attributes(@resource, @action, @exactly) %>
<div class="grid grid-cols-6 gap-6">
<div
:for={attribute <- Enum.reject(attributes, &(&1.name in @skip))}
:for={attribute <- Enum.reject(attributes, &(is_nil(@exactly) && &1.name in @skip))}
class={
classes([
"col-span-6",
@ -281,6 +281,7 @@ defmodule AshAdmin.Components.Resource.Form do
"""
end
@spec error_tag(any()) :: Phoenix.LiveView.Rendered.t()
def error_tag(assigns) do
~H"""
<p class="mt-3 flex gap-3 text-sm leading-6 text-rose-600 phx-no-feedback:hidden">