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.

Store form mailer logo fix for SVG files

Robert Nowakowski1752775e758f
diff --git a/backend/app/views/spree/admin/stores/_form.html.erb b/backend/app/views/spree/admin/stores/_form.html.erb
index ea02284156..1321f1398b 100644
--- a/backend/app/views/spree/admin/stores/_form.html.erb
+++ b/backend/app/views/spree/admin/stores/_form.html.erb
@@ -20,7 +20,7 @@
<% end %>
<% end %>
<%= f.field_container :mailer_logo, class: ['form-group'] do %>
- <% if @store.mailer_logo.attached? %>
+ <% if @store.mailer_logo.attached? && @store.mailer_logo.variable? %>
<%= image_tag main_app.url_for(@store.mailer_logo.variant(resize: '244x104>')) %>
<% end %>
<%= f.field_container :mailer_logo, class: ['form-group'] do %>