Skip to content

Commit

Permalink
Check if image alias uri is valid before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Apr 8, 2024
1 parent 9407156 commit 86a6ffc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% if content.hasField('image') and not content.fields.image.empty %}
{% set image_alias = ng_image_alias(content.fields.image, 'nglayouts_app_preview') %}

{% if image_alias %}
{% if image_alias and image_alias.uri is not null %}
<div class="image">
<img src="{{ asset(image_alias.uri) }}" />
</div>
Expand Down

0 comments on commit 86a6ffc

Please sign in to comment.