diff --git a/app/views/admin/communication/blocks/templates/partners/_preview.html.erb b/app/views/admin/communication/blocks/templates/partners/_preview.html.erb index 1fc3ea5420659abd6915f81260fcd6025472db34..b68fde36b6afebe8dbbf318c24779716debb4306 100644 --- a/app/views/admin/communication/blocks/templates/partners/_preview.html.erb +++ b/app/views/admin/communication/blocks/templates/partners/_preview.html.erb @@ -54,9 +54,11 @@ </a> <% end %> </h3> - <div class="media"> - <%= kamifusen_tag element.best_logo, width: 600 %> - </div> + <% if element.best_logo.attached? %> + <div class="media"> + <%= kamifusen_tag element.best_logo, width: 600 %> + </div> + <% end %> </article> <% end %> </div>