Remove array syntax on new product form for product image

(cherry picked from commit 24aa55e053)
This commit is contained in:
Matt-Yorkley
2023-06-20 13:14:52 +01:00
committed by David Cook
parent a56541216e
commit 68b59ab7a6

View File

@@ -101,7 +101,7 @@
.row
= image_tag Spree::Image.default_image_url(:product), class: "four columns alpha"
.row
= f.fields_for 'image_attributes[]', f.object.build_image do |image_fields|
= f.fields_for 'image_attributes', f.object.build_image do |image_fields|
= image_fields.file_field :attachment
.sixteen.columns.alpha
.form-buttons.filter-actions.actions