From e297a1889ccad03830fe73201283e097433a27ff Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Fri, 12 Jan 2024 11:47:16 -0500 Subject: [PATCH] fix: List.wrap data in list case --- lib/ash_phoenix/form/auto.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ash_phoenix/form/auto.ex b/lib/ash_phoenix/form/auto.ex index a51ec38..96d6a18 100644 --- a/lib/ash_phoenix/form/auto.ex +++ b/lib/ash_phoenix/form/auto.ex @@ -775,7 +775,7 @@ defmodule AshPhoenix.Form.Auto do :list -> fn parent -> if parent do - Map.get(parent, attr.name) || [] + List.wrap(Map.get(parent, attr.name)) else [] end