9726 Remove safe navigation operator and simplify call to attachment file name

This commit is contained in:
AthiraKadampatta
2022-10-10 11:09:48 +05:30
committed by Konrad
parent 80eef9c302
commit b2c778794d

View File

@@ -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/