app/views/themes/base/attributes/_image.html.erb in bullet_train-themes-1.7.16 vs app/views/themes/base/attributes/_image.html.erb in bullet_train-themes-1.7.17
- old
+ new
@@ -5,7 +5,9 @@
<% options[:height] ||= 200 %>
<% if cloudinary_enabled? %>
<%= cloudinary_image_tag object.public_send(attribute), options %>
<% else %>
- <%= image_tag photo_url_for_active_storage_attachment(object.public_send(attribute), options) %>
+ <% if object.public_send(attribute).attached? %>
+ <%= image_tag photo_url_for_active_storage_attachment(object.public_send(attribute), options) %>
+ <% end %>
<% end %>