Skip to content

Commit

Permalink
Merge pull request #2397 from DemocracyClub/fix-aws-sopn-images
Browse files Browse the repository at this point in the history
Fix 500 for staff users when looking at SOPN with AWS images attached
  • Loading branch information
symroe authored Jun 20, 2024
2 parents c739788 + 4c58713 commit 25d2596
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ <h3>AWS document markdown</h3>
{% if textract_parsed.images.exists %}
<h3>AWS document annotated</h3>
{% for image in textract_parsed.images.all %}
<img src="{{ image.image.url }}">
{% if image.image %}
<img src="{{ image.image.url }}">
{% endif %}
{% endfor %}
{% endif %}

Expand Down

0 comments on commit 25d2596

Please sign in to comment.