mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Use image url helper
Without it, I think the correct S3 url isn't generated.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
= render ModalComponent.new id: "#modal_edit_product_image_#{image.id}", instant: true, close_button: false do
|
||||
%h2= t(".title")
|
||||
|
||||
%p= image_tag image.persisted? ? image.variant(:product) : Spree::Image.default_image_url(:product)
|
||||
%p= image_tag image.persisted? ? image.url(:product) : Spree::Image.default_image_url(:product)
|
||||
|
||||
-# Submit to controller, because StimulusReflex doesn't support file uploads
|
||||
= form_for [:admin, product, image],
|
||||
|
||||
Reference in New Issue
Block a user