Avoid error on photo modal without photos

This commit is contained in:
Eli Ribble 2026-03-14 16:17:08 +00:00
parent 70ebfa8ee0
commit 4c71cab973
No known key found for this signature in database

View file

@ -854,9 +854,7 @@
></button> ></button>
</div> </div>
<div class="modal-body text-center"> <div class="modal-body text-center">
<template <template x-if="selectedCommunication && showPhotoModal">
x-if="selectedCommunication && selectedCommunication.public_report.images"
>
<div> <div>
<img <img
:src="selectedCommunication.public_report.images[currentPhotoIndex].url_content" :src="selectedCommunication.public_report.images[currentPhotoIndex].url_content"