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 Kalisz634f2e503745
diff --git a/backend/app/views/spree/admin/stores/_form.html.erb b/backend/app/views/spree/admin/stores/_form.html.erb
index f6dffbea41..e00bc0304b 100644
--- a/backend/app/views/spree/admin/stores/_form.html.erb
+++ b/backend/app/views/spree/admin/stores/_form.html.erb
@@ -11,7 +11,7 @@
<% if @store.logo.attached? && @store.logo.variable? %>
<%= image_tag main_app.url_for(@store.logo.variant(resize: '244x104>')) %>
<% elsif @store.logo.attached? && @store.logo.image? %>
- <%= image_tag main_app.url_for(current_store.logo) %>
+ <%= image_tag main_app.url_for(@store.logo) %>
<% end %>
<%= f.field_container :logo, class: ['form-group'] do %>
<%= f.label :logo, Spree.t(:logo) %><br />