From 887d0d24198caea4513ae19b064e11f0d9e7bb8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 20 Dec 2024 14:17:31 +0100 Subject: [PATCH] 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. --- app/components/admin/geozones/index_component.html.erb | 2 +- app/components/admin/geozones/index_component.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/admin/geozones/index_component.html.erb b/app/components/admin/geozones/index_component.html.erb index c423a6f87..18d8eda72 100644 --- a/app/components/admin/geozones/index_component.html.erb +++ b/app/components/admin/geozones/index_component.html.erb @@ -34,5 +34,5 @@

<%= t("admin.geozones.index.geojson_map") %>

<%= t("admin.geozones.index.geojson_map_help") %>

- <%= render Shared::MapLocationComponent.new(nil, geozones_data: geozones_data) %> + <%= render_map(nil, geozones_data: geozones_data) %> diff --git a/app/components/admin/geozones/index_component.rb b/app/components/admin/geozones/index_component.rb index 5d25a7188..0d3c0f6ff 100644 --- a/app/components/admin/geozones/index_component.rb +++ b/app/components/admin/geozones/index_component.rb @@ -1,6 +1,7 @@ class Admin::Geozones::IndexComponent < ApplicationComponent include Header attr_reader :geozones + use_helpers :render_map def initialize(geozones) @geozones = geozones