fix: properly honor value_is_key option

This commit is contained in:
Zach Daniel 2022-10-31 19:43:23 -04:00
parent daf0a73cd2
commit c1976e1eaa

View file

@ -176,7 +176,7 @@ defmodule AshPhoenix.Form.Auto do
opts
else
key =
opts[:value_is_key] ||
manage_opts[:value_is_key] ||
relationship.destination
|> Ash.Resource.Info.primary_key()
|> case do