diff --git a/app/views/admin/communication/blocks/templates/gallery/_snippet.html.erb b/app/views/admin/communication/blocks/templates/gallery/_snippet.html.erb index 4e8f6a91f42256e7f6bb2c54932a20a6dff071d8..0156dba41f33cd98f656cfd2202d69288ad95321 100644 --- a/app/views/admin/communication/blocks/templates/gallery/_snippet.html.erb +++ b/app/views/admin/communication/blocks/templates/gallery/_snippet.html.erb @@ -1,10 +1,4 @@ <% block.template.elements.first(4).each do |element| %> - <% - component = element.image_component - blob = component.blob - next unless blob - image = blob.representable? ? blob.representation(resize: 'x180') - : blob - %> - <%= kamifusen_tag image, height: 90, alt: '', class: 'me-2' %> + <% blob = element.image_component.blob %> + <%= kamifusen_tag blob, height: 90, alt: '', class: 'me-2' if blob %> <% end %>