Skip to content

Commit

Permalink
fix: proper path to nested entities in search data
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Feb 3, 2025
1 parent 24824f9 commit cee587f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/spark/docs.ex
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ defmodule Spark.Docs do
],
schema_search_data(entity.schema, path ++ [entity.name]),
Enum.flat_map(entity.entities, fn {_key, entities} ->
Enum.flat_map(entities, fn entity ->
entity_search_data(entity, path ++ [entity.name])
Enum.flat_map(entities, fn nested_entity ->
entity_search_data(nested_entity, path ++ [entity.name])
end)
end)
])
Expand Down

0 comments on commit cee587f

Please sign in to comment.