From 52e9132ba3a479ee5a3281a0567557b4387dc8f5 Mon Sep 17 00:00:00 2001 From: Keith Lawrence Date: Thu, 9 May 2024 09:45:53 +0100 Subject: [PATCH] Add default image fallback --- app/helpers/latest_news_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/latest_news_helper.rb b/app/helpers/latest_news_helper.rb index e9b7413b0..c00d85b58 100644 --- a/app/helpers/latest_news_helper.rb +++ b/app/helpers/latest_news_helper.rb @@ -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