fix: return proper result when input is struct

This commit is contained in:
Zach Daniel 2021-09-19 14:17:14 -04:00
parent bead3f528e
commit 61dcd56d0e

View file

@ -924,7 +924,7 @@ defmodule Ash.Actions.ManagedRelationships do
nil ->
created =
if is_struct(input) do
{:ok, input, [], []}
{:ok, input, []}
else
relationship.destination
|> Ash.Changeset.new()