Skip to content

Commit f8d8eb5

Browse files
cosararazachdaniel
authored andcommitted
enable format_fields when rendering relationships of cardinality: :many
1 parent 8f82b2e commit f8d8eb5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • lib/ash_admin/components/resource

lib/ash_admin/components/resource/show.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ defmodule AshAdmin.Components.Resource.Show do
275275
data: data,
276276
destination: destination,
277277
destination_domain: destination_domain,
278+
destination_format_fields: AshAdmin.Resource.format_fields(destination),
278279
context: context,
279280
destination_attribute: destination_attribute,
280281
relationship_name: name
@@ -285,6 +286,7 @@ defmodule AshAdmin.Components.Resource.Show do
285286
<Table.table
286287
data={@data}
287288
resource={@destination}
289+
format_fields={@destination_format_fields}
288290
domain={@destination_domain || Ash.Resource.Info.domain(@destination) || @domain}
289291
table={@context[:data_layer][:table]}
290292
prefix={@prefix}

0 commit comments

Comments
 (0)