From 55934bcc4a446a07675ac6ae8f1c0d89c5c7a787 Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Sat, 11 Apr 2026 14:57:36 +0930 Subject: [PATCH] Add conditional rendering for harvest thumbnail image --- app/views/home/_harvests.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/home/_harvests.html.haml b/app/views/home/_harvests.html.haml index 0621e99a58..27299a245a 100644 --- a/app/views/home/_harvests.html.haml +++ b/app/views/home/_harvests.html.haml @@ -9,4 +9,5 @@ %small.text-muted harvested by #{harvest.owner_login_name} %p.mb-2 - = image_tag harvest.thumbnail_url, width: 75, class: 'rounded shadow', alt: "Image of #{harvest.crop_name} by #{harvest.owner}" + - if harvest.thumbnail_url + = image_tag harvest.thumbnail_url, width: 75, class: 'rounded shadow', alt: "Image of #{harvest.crop_name} by #{harvest.owner}"