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
Use safe navigation operator in chain.
Matthew Kennedy4e70a81c613c
diff --git a/frontend/app/views/spree/shared/_carousel_4_products.html.erb b/frontend/app/views/spree/shared/_carousel_4_products.html.erbindex d0c8d984bd..0ab75af08e 100644--- a/frontend/app/views/spree/shared/_carousel_4_products.html.erb+++ b/frontend/app/views/spree/shared/_carousel_4_products.html.erb@@ -1,4 +1,4 @@-<% cache [common_product_cache_keys, products&.pluck(:updated_at).last&.to_i, id, products&.ids&.join(',')] do %>+<% cache [common_product_cache_keys, products&.pluck(:updated_at)&.last&.to_i, id, products&.ids&.join(',')] do %><div id="<%= id %>-mobile" class="carousel slide d-md-none homepage-carousel" data-interval="false"><div class="carousel-inner"><% products.each_slice(2).with_index do |sliced_items, index| %>