From 745637d785cae0ec9153621ee6e7007b5b8b0118 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Gaya?= <sebastien.gaya@gmail.com>
Date: Mon, 25 Oct 2021 17:15:52 +0200
Subject: [PATCH] fix

---
 app/views/admin/communication/website/posts/_list.html.erb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/views/admin/communication/website/posts/_list.html.erb b/app/views/admin/communication/website/posts/_list.html.erb
index 2d89d1a61..508c7314a 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">
-- 
GitLab