From dbcfb12c5225f02dea22f287959547f93ecc1c1f Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Mon, 28 Nov 2022 15:07:30 -0600 Subject: [PATCH] Remove empty popup image --- resources/views/tracker.blade.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/views/tracker.blade.php b/resources/views/tracker.blade.php index c4cd8d1..64f5aa2 100644 --- a/resources/views/tracker.blade.php +++ b/resources/views/tracker.blade.php @@ -115,7 +115,9 @@ popupMarkup = ``; popupMarkup += `{!! $popupContent !!}`; - popupMarkup += ''; + @if($checkin->image_url) + popupMarkup += ''; + @endif marker.bindPopup(popupMarkup).openPopup(); checkinMarkers[{{ $checkin->id }}] = marker;