From 1a03651f5e66c6d6cc521bb21c1a85d677e7a607 Mon Sep 17 00:00:00 2001 From: Paul Bob Date: Tue, 12 Nov 2024 22:35:43 +0200 Subject: [PATCH] map types to string --- .../avo/fields/belongs_to_field/edit_component.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, },