diff --git a/lib/ash_admin/components/resource/form.ex b/lib/ash_admin/components/resource/form.ex index 6cb6900..4c674ea 100644 --- a/lib/ash_admin/components/resource/form.ex +++ b/lib/ash_admin/components/resource/form.ex @@ -722,7 +722,7 @@ defmodule AshAdmin.Components.Resource.Form do @attribute.name, Enum.map(@attribute.constraints[:one_of], &{to_name(&1), &1}), selected: value(@value, @form, @attribute, List.first(@attribute.constraints[:one_of])), - prompt: allow_nil_option(@attribute, @attribute), + prompt: allow_nil_option(@attribute, @value), name: @name || @form.name <> "[#{@attribute.name}]" ) %> <% markdown?(@form.source.resource, @attribute) -> %>