diff --git a/app/components/avo/fields/belongs_to_field/edit_component.html.erb b/app/components/avo/fields/belongs_to_field/edit_component.html.erb index 9ff71f1d3..c2b993528 100644 --- a/app/components/avo/fields/belongs_to_field/edit_component.html.erb +++ b/app/components/avo/fields/belongs_to_field/edit_component.html.erb @@ -6,7 +6,7 @@ data-association-class="<%= @field&.target_resource&.model_class || nil %>" > <%= field_wrapper **field_wrapper_args, label_for: @field.polymorphic_form_field_label, help: @field.polymorphic_help || '' do %> - <%= @form.select @field.type_input_foreign_key, options_for_select(@field.types.map { |type| [type, type] }, @field.value.try(:type)), + <%= @form.select @field.type_input_foreign_key, options_for_select(@field.types.map(&:to_s), @field.value.try(:type)), { include_blank: @field.placeholder, },