diff --git a/app/components/map_locations/form_fields_component.html.erb b/app/components/map_locations/form_fields_component.html.erb index 9d8d02e10..eb0643a77 100644 --- a/app/components/map_locations/form_fields_component.html.erb +++ b/app/components/map_locations/form_fields_component.html.erb @@ -2,11 +2,11 @@ <%= label %>

<%= help %>

- <%= form.fields_for :map_location, map_location do |m_l_fields| %> - <%= render_map(map_location, form: m_l_fields) %> + <%= form.fields_for :map_location, map_location do |fields| %> + <%= render_map(map_location, form: fields) %> - <%= m_l_fields.hidden_field :latitude %> - <%= m_l_fields.hidden_field :longitude %> - <%= m_l_fields.hidden_field :zoom %> + <%= fields.hidden_field :latitude %> + <%= fields.hidden_field :longitude %> + <%= fields.hidden_field :zoom %> <% end %>