Skip to content
Snippets Groups Projects
Unverified Commit 6097b886 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

[skip ci] hotfix image snippet without image

parent fdedec69
No related branches found
No related tags found
No related merge requests found
<%
blob = block.template.image_component.blob
object = blob.variable? ? blob.variant(resize: 'x180')
: blob
<%
blob = block.template.image_component.blob
object = blob&.variable? ? blob.variant(resize: 'x180')
: blob
%>
<%= image_tag object, height: 90, alt: '', class: 'me-2' if blob %>
<%= image_tag object, height: 90, alt: '', class: 'me-2' if object %>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment