Skip to content

Commit f79ec3b

Browse files
committed
fix: don't include nil tables when considering if polymorphic tables is empty
1 parent 473ca9d commit f79ec3b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/ash_admin/resource/resource.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ defmodule AshAdmin.Resource do
275275
|> Enum.flat_map(&Ash.Resource.Info.relationships/1)
276276
|> Enum.filter(&(&1.destination == resource))
277277
|> Enum.map(& &1.context[:data_layer][:table])
278+
|> Enum.reject(&is_nil/1)
278279
|> Enum.uniq()
279280
|> case do
280281
[] ->

0 commit comments

Comments
 (0)