diff --git a/lib/ash_admin/components/resource/show.ex b/lib/ash_admin/components/resource/show.ex index bccdfe2..69b321f 100644 --- a/lib/ash_admin/components/resource/show.ex +++ b/lib/ash_admin/components/resource/show.ex @@ -493,7 +493,10 @@ defmodule AshAdmin.Components.Resource.Show do struct_map = record |> Map.get(attribute.name) - |> Map.from_struct() + |> case do + nil -> nil + value -> Map.from_struct(value) + end render_attribute( assigns,