From 7ba0293896d08ee6905409a7a592240784abf8d9 Mon Sep 17 00:00:00 2001 From: Guilherme Bordallo Date: Fri, 14 Aug 2026 10:03:37 -0400 Subject: [PATCH] fix: handle nil values when rendering AshTypedStructures --- lib/ash_admin/components/resource/show.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,