Don't show location data when it's empty

This commit is contained in:
Eli Ribble 2026-03-10 15:50:39 +00:00
parent e5211d1409
commit 6db5bb1cbf
No known key found for this signature in database

View file

@ -922,9 +922,18 @@
<small class="text-muted d-block"
>Distance from Reporter</small
>
<span
x-text="formatDistance(selectedCommunication.public_report.images[currentPhotoIndex].distance_from_reporter_meters)"
></span>
<template
x-if="selectedCommunication.public_report.images[currentPhotoIndex].location.latitude != 0"
>
<span
x-text="formatDistance(selectedCommunication.public_report.images[currentPhotoIndex].distance_from_reporter_meters)"
></span>
</template>
<template
x-if="selectedCommunication.public_report.images[currentPhotoIndex].location.latitude == 0"
>
<span>No location data in image</span>
</template>
</div>
</div>
</div>