mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-20 15:22:49 +12:00
fix: ensure existing forms is a list before adding
This commit is contained in:
parent
e07e8da22f
commit
b058f6b276
1 changed files with 2 additions and 0 deletions
|
@ -1209,6 +1209,8 @@ defmodule AshPhoenix.Form do
|
||||||
%{new_form | id: form.id <> "[#{key}]"}
|
%{new_form | id: form.id <> "[#{key}]"}
|
||||||
|
|
||||||
:list ->
|
:list ->
|
||||||
|
forms = List.wrap(forms)
|
||||||
|
|
||||||
if opts[:prepend] do
|
if opts[:prepend] do
|
||||||
[new_form | forms]
|
[new_form | forms]
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue