Use render_map to render the map component

This is done for consistency. We always use `render_map`, but forgot to
do the same in commit 529357c98.
This commit is contained in:
Javi Martín
2024-12-20 14:17:31 +01:00
parent 1f627d34f1
commit 887d0d2419
2 changed files with 2 additions and 1 deletions

View File

@@ -34,5 +34,5 @@
<h3><%= t("admin.geozones.index.geojson_map") %></h3>
<p class="help-text"><%= t("admin.geozones.index.geojson_map_help") %></p>
<%= render Shared::MapLocationComponent.new(nil, geozones_data: geozones_data) %>
<%= render_map(nil, geozones_data: geozones_data) %>
</section>

View File

@@ -1,6 +1,7 @@
class Admin::Geozones::IndexComponent < ApplicationComponent
include Header
attr_reader :geozones
use_helpers :render_map
def initialize(geozones)
@geozones = geozones