From 93f9e19bcbef88650fa17c65a76ebc306b9e2fda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francisco=20Bol=C3=ADvar?= Date: Mon, 2 Dec 2024 16:19:52 +0100 Subject: [PATCH] Do not render map on proposal index for specific components --- .../app/views/decidim/proposals/proposals/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decidim-proposals/app/views/decidim/proposals/proposals/index.html.erb b/decidim-proposals/app/views/decidim/proposals/proposals/index.html.erb index cd5d6cf2bd115..111f070c19fb7 100644 --- a/decidim-proposals/app/views/decidim/proposals/proposals/index.html.erb +++ b/decidim-proposals/app/views/decidim/proposals/proposals/index.html.erb @@ -29,7 +29,7 @@ <%= render layout: "layouts/decidim/shared/layout_two_col" do %> - <% if Decidim::Map.available?(:geocoding, :dynamic) && component_settings.geocoding_enabled? %> + <% if Decidim::Map.available?(:geocoding, :dynamic) && component_settings.geocoding_enabled? && !(ENV["PROPOSAL_COMPONENTS_WITHOUT_MAPS"] || "").split(',').include?(current_component.id.to_s) %>
<%= dynamic_map_for proposals_data_for_map(@all_geocoded_proposals) do %>