mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-20 07:12:49 +12:00
improvement: fix & clarify logic in do_decode_path/4 (#35)
This commit is contained in:
parent
3829807631
commit
66a1b4002f
1 changed files with 1 additions and 1 deletions
|
@ -2418,7 +2418,7 @@ defmodule AshPhoenix.Form do
|
|||
raise "Invalid Path: #{original_path}"
|
||||
|
||||
{key, config} ->
|
||||
if config[:type] || :single == :single do
|
||||
if Keyword.get(config, :type, :single) == :single do
|
||||
[key | do_decode_path(form.forms[key], original_path, rest, config[:sparse?])]
|
||||
else
|
||||
[key | do_decode_path(form.forms[key] || [], original_path, rest, config[:sparse?])]
|
||||
|
|
Loading…
Reference in a new issue