mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-20 07:12:49 +12:00
fix: handle adding to array paths bettter
This commit is contained in:
parent
cf5baa500c
commit
31a4943038
1 changed files with 1 additions and 1 deletions
|
@ -662,7 +662,7 @@ defmodule AshPhoenix do
|
|||
end
|
||||
|
||||
defp add_to_path(value, [], add) when is_map(value) do
|
||||
add_to_path([value], [], add)
|
||||
%{"0" => value, "1" => add}
|
||||
end
|
||||
|
||||
defp add_to_path(value, [key | rest], add) when is_integer(key) and is_list(value) do
|
||||
|
|
Loading…
Reference in a new issue