From b2c778794d679e9cfb15cce7a2c6cf0dbe7e4543 Mon Sep 17 00:00:00 2001 From: AthiraKadampatta Date: Mon, 10 Oct 2022 11:09:48 +0530 Subject: [PATCH] 9726 Remove safe navigation operator and simplify call to attachment file name --- app/views/spree/admin/images/edit.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/spree/admin/images/edit.html.haml b/app/views/spree/admin/images/edit.html.haml index 6c6c035827..711dd32fbb 100644 --- a/app/views/spree/admin/images/edit.html.haml +++ b/app/views/spree/admin/images/edit.html.haml @@ -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/