Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Fix rendering Image With Text page section (#12428)
Łukasz Adamczyk1ec3ad804b80
diff --git a/storefront/app/helpers/spree/page_helper.rb b/storefront/app/helpers/spree/page_helper.rbindex 5f4efa13d3..b9d1c8791e 100644--- a/storefront/app/helpers/spree/page_helper.rb+++ b/storefront/app/helpers/spree/page_helper.rb@@ -55,7 +55,7 @@ module Spreeblock.present? ? block.call : options[:label]endelse- block&.call+ block&.call&.html_safeendendenddiff --git a/storefront/app/views/themes/default/spree/page_sections/_image_with_text.html.erb b/storefront/app/views/themes/default/spree/page_sections/_image_with_text.html.erbindex 4aa07db7a9..faa15147bb 100644--- a/storefront/app/views/themes/default/spree/page_sections/_image_with_text.html.erb+++ b/storefront/app/views/themes/default/spree/page_sections/_image_with_text.html.erb@@ -14,7 +14,7 @@}.join(', ')%><% else %>- <div class="w-full h-full object-cover bg-gray-100"></div>+ <%= content_tag(:div, '', class: 'w-full h-full object-cover bg-gray-100') %><% end %><% end %></div>