mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 21:43:02 +12:00
fix: handle manual relationship load results when building query
This commit is contained in:
parent
3614fce456
commit
8173f640f0
1 changed files with 10 additions and 4 deletions
|
@ -1350,7 +1350,13 @@ defmodule Ash.Actions.Load do
|
||||||
end
|
end
|
||||||
|
|
||||||
ids =
|
ids =
|
||||||
Enum.flat_map(related_data, fn data ->
|
Enum.flat_map(related_data, fn
|
||||||
|
{_, data} ->
|
||||||
|
data
|
||||||
|
|> Map.get(source_attribute)
|
||||||
|
|> List.wrap()
|
||||||
|
|
||||||
|
data ->
|
||||||
data
|
data
|
||||||
|> Map.get(source_attribute)
|
|> Map.get(source_attribute)
|
||||||
|> List.wrap()
|
|> List.wrap()
|
||||||
|
|
Loading…
Reference in a new issue