fix: use proper input params for embeds

This commit is contained in:
Zach Daniel 2021-05-14 02:35:33 -04:00
parent fbaf4c8ece
commit 2874070ff8

View file

@ -292,7 +292,7 @@ defmodule AshPhoenix.FormData.Helpers do
if is_struct(data) do
Ash.Changeset.for_update(data, update_action, params(data), actor: opts[:actor])
else
Ash.Changeset.for_create(resource, create_action, params(data), actor: opts[:actor])
Ash.Changeset.for_create(resource, create_action, data, actor: opts[:actor])
end
end)