Skip to content

Commit

Permalink
Add default image fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed May 9, 2024
1 parent 4691211 commit 52e9132
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/latest_news_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ def get_news_item_header_image_from(results)
news_item.parsed_content["details"]["image"]
rescue StandardError
GovukError.notify("News item in Latest News Section doesn't exist or doesn't have an image")
nil
"https://assets.publishing.service.gov.uk/media/5a37dae940f0b649cceb1841/s300_number10.jpg"
end
end

0 comments on commit 52e9132

Please sign in to comment.