Skip to content

Commit

Permalink
hotfix: account for no images in archived alerts
Browse files Browse the repository at this point in the history
fixes the bus stop changes page
  • Loading branch information
thecristen committed Aug 21, 2024
1 parent c6160c8 commit b6bd18b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dotcom_web/templates/alert/_item.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</div>
<%= if @alert.description do %>
<div class="c-alert-item__bottom c-alert-item__bottom--<%= @alert.priority %>">
<%= if @alert.image do %>
<%= if Map.get(@alert, :image) do %>
<a href="<%= @alert.image %>" target="_blank">
<img src="<%= @alert.image %>" alt="<%= @alert.image_alternative_text %>" class="w-100" />
</a>
Expand Down

0 comments on commit b6bd18b

Please sign in to comment.