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.

Use @store instead of current_store

Krzysztof Kalisz0466f22e0ccb
diff --git a/backend/app/views/spree/admin/stores/_form.html.erb b/backend/app/views/spree/admin/stores/_form.html.erb
index 4ecbc1a2c1..f6dffbea41 100644
--- a/backend/app/views/spree/admin/stores/_form.html.erb
+++ b/backend/app/views/spree/admin/stores/_form.html.erb
@@ -10,7 +10,7 @@
<%= f.field_container :logo, class: ['form-group'] do %>
<% if @store.logo.attached? && @store.logo.variable? %>
<%= image_tag main_app.url_for(@store.logo.variant(resize: '244x104>')) %>
- <% elsif @store.logo.attached? && current_store.logo.image? %>
+ <% elsif @store.logo.attached? && @store.logo.image? %>
<%= image_tag main_app.url_for(current_store.logo) %>
<% end %>
<%= f.field_container :logo, class: ['form-group'] do %>