mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-02 21:57:17 +00:00
9726 Remove safe navigation operator and simplify call to attachment file name
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
= form_for [:admin, @product, @image], url: admin_product_image_path(@product, @image, @url_filters), html: { multipart: true } do |f|
|
||||
%fieldset
|
||||
%legend{align: "center"}= @image.attachment&.filename
|
||||
%legend{align: "center"}= @image.attachment.filename
|
||||
.field.alpha.three.columns.align-center
|
||||
= f.label t('spree.thumbnail')
|
||||
%br/
|
||||
|
||||
Reference in New Issue
Block a user