diff --git a/backend/app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb b/backend/app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb index e6e3cad14e1..f6e2d899add 100644 --- a/backend/app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb +++ b/backend/app/views/spree/admin/taxons/attachment_forms/_paperclip.html.erb @@ -2,7 +2,7 @@ <%= f.field_container attachment do %> <%= f.label attachment %>
<%= f.file_field attachment %> - <% if f.object.send(attachment).exists? %> + <% if f.object.send(attachment).present? %> <%= image_tag f.object.send(attachment, definition[:default_style]) %> <%= link_to t('spree.actions.remove'), admin_taxonomy_taxon_attachment_path(@taxonomy,