diff --git a/app/views/admin/communication/blocks/templates/posts/_snippet.html.erb b/app/views/admin/communication/blocks/templates/posts/_snippet.html.erb
index c366cb4254fc6a4811e88869284fb8c0252300fe..bfbf93ddde96ed90bfff4d8517276e9c864a3bc5 100644
--- a/app/views/admin/communication/blocks/templates/posts/_snippet.html.erb
+++ b/app/views/admin/communication/blocks/templates/posts/_snippet.html.erb
@@ -1,7 +1,7 @@
 <%  if block.template.mode == 'categories' %>
   <% @website.post_categories.ordered(current_language).each do |category| %>
     <p><%= category.to_s_in(current_language) %></p>
-  <% end %>
+  <% end if @website%>
 <% else %>
   <div class="row">
   <% block.template.selected_posts.each do |post|