mirror of
https://github.com/ash-project/ash_phoenix.git
synced 2024-09-20 07:12: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}]"}
|
||||
|
||||
:list ->
|
||||
forms = List.wrap(forms)
|
||||
|
||||
if opts[:prepend] do
|
||||
[new_form | forms]
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue