Skip to content

armgit / spree

Public Imported from GitHub
0

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.

Update admin view helper.

Matthew Kennedyd51b510bdb2d
diff --git a/backend/app/helpers/spree/admin/cms_page_helper.rb b/backend/app/helpers/spree/admin/cms_page_helper.rb
index 38837e0fa7..5a9f2f3f4b 100644
--- a/backend/app/helpers/spree/admin/cms_page_helper.rb
+++ b/backend/app/helpers/spree/admin/cms_page_helper.rb
@@ -2,8 +2,6 @@ module Spree
module Admin
module CmsPageHelper
def build_page_section(section)
- preview_type = section.kind.parameterize(separator: '_')
-
case section.width
when 'Half'
css_width = 'col-6'
@@ -13,7 +11,7 @@ module Spree
css_width = 'col-12 px-0 edge'
end
- render "spree/admin/cms_pages/section_template", section: section, width: css_width
+ render 'spree/admin/cms_pages/section_template', section: section, width: css_width
end
def linkable_as_path(item)