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 8c5a3d65c132d178d4af1fca6d12eda8011daf99..cdfbcf31207455e3aef404deca89ec24fa526abf 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">