From d8199bf2974b86a930953b374e5d89e64ce0ddad Mon Sep 17 00:00:00 2001 From: Olivia206 <olivia.simonet@mmibordeaux.com> Date: Tue, 18 Apr 2023 09:50:14 +0200 Subject: [PATCH] fix cc --- .../communication/blocks/templates/posts/_preview.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/communication/blocks/templates/posts/_preview.html.erb b/app/views/admin/communication/blocks/templates/posts/_preview.html.erb index 8c5a3d65c..cdfbcf312 100644 --- a/app/views/admin/communication/blocks/templates/posts/_preview.html.erb +++ b/app/views/admin/communication/blocks/templates/posts/_preview.html.erb @@ -55,7 +55,7 @@ date_format = "%e %B %Y" </div> <% elsif @block.template.layout === "highlight" - highlight_post = @block.template.selected_posts.first + highlight_post = @block.template.selected_posts[0] %> <div class="highlight"> <div class="highlight-post"> -- GitLab