diff --git a/app/views/admin/communication/website/posts/_list.html.erb b/app/views/admin/communication/website/posts/_list.html.erb index 2d89d1a61f97e2ad5fc6caa251d79f376b06e01a..508c7314a48f9368fecf5fbf993c3452db1fa9e7 100644 --- a/app/views/admin/communication/website/posts/_list.html.erb +++ b/app/views/admin/communication/website/posts/_list.html.erb @@ -11,8 +11,8 @@ <% posts.each do |post| %> <tr> <td><%= link_to post, admin_communication_website_post_path(website_id: post.website.id, id: post.id) %></td> - <td><%= image_tag post.featured_image.variant(resize: 'x100'), - height: 50 if post.featured_image.attached? %></td> + <td><%= image_tag post.featured_image.representation(resize: 'x100'), + height: 50 if post.featured_image.attached? && post.featured_image.representable? %></td> <td><%= l post.published_at, format: :long if post.published_at %></td> <td class="text-end"> <div class="btn-group" role="group">