Fix double-showing of distance

This commit is contained in:
Eli Ribble 2026-03-20 15:50:18 +00:00
parent 6fcaf7fb5d
commit c9802b78d0
No known key found for this signature in database

View file

@ -954,14 +954,14 @@
>Distance from Reporter</small
>
<template
x-if="selectedCommunication.public_report.images[currentPhotoIndex].location?.latitude != 0"
x-if="selectedCommunication.public_report.images[currentPhotoIndex].location != null"
>
<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"
x-if="selectedCommunication.public_report.images[currentPhotoIndex].location == null"
>
<span>No location data in image</span>
</template>