Skip to content

Commit

Permalink
fix: set assigns for show block
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jul 26, 2023
1 parent c84ecc1 commit 1c75867
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/ash_admin/components/resource/show.ex
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,14 @@ defmodule AshAdmin.Components.Resource.Show do
"""
end
else
assigns =
assign(assigns,
resource: resource,
record: record,
attribute: attribute,
nested: nested?
)

if attribute.type == Ash.Type.String do
cond do
short_text?(resource, attribute) ->
Expand Down

0 comments on commit 1c75867

Please sign in to comment.