diff --git a/client/src/main/scala/com.gu.contentapi.client/utils/CapiModelEnrichment.scala b/client/src/main/scala/com.gu.contentapi.client/utils/CapiModelEnrichment.scala index 5ba6f0c..5431690 100644 --- a/client/src/main/scala/com.gu.contentapi.client/utils/CapiModelEnrichment.scala +++ b/client/src/main/scala/com.gu.contentapi.client/utils/CapiModelEnrichment.scala @@ -215,7 +215,7 @@ object CapiModelEnrichment { val hasShowcaseImage = for { blocks <- content.blocks main <- blocks.main - mainMedia = main.elements.head + mainMedia <- main.elements.headOption imageTypeData <- mainMedia.imageTypeData imageRole <- imageTypeData.role } yield {