From c462ac919fc97db1de5732eebc7bd818f2d6d594 Mon Sep 17 00:00:00 2001 From: David Cook Date: Fri, 19 Jan 2024 10:26:54 +1100 Subject: [PATCH] Use image url helper Without it, I think the correct S3 url isn't generated. --- app/views/admin/products_v3/_edit_image.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/products_v3/_edit_image.html.haml b/app/views/admin/products_v3/_edit_image.html.haml index 288e3d35c3..b4f45ace5d 100644 --- a/app/views/admin/products_v3/_edit_image.html.haml +++ b/app/views/admin/products_v3/_edit_image.html.haml @@ -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],