Update report count correctly

This commit is contained in:
Eli Ribble 2026-02-05 01:05:41 +00:00
parent 0e6e85825a
commit 96e14b2b5e
No known key found for this signature in database

View file

@ -53,6 +53,9 @@ function renderReports(features) {
});
}
report_table.reports = reports;
const report_count = document.getElementById("report-count");
report_count.innerHTML = reports.length + " Reports Found";
}
function onLoad() {
const map = document.querySelector("map-multipoint");
@ -187,7 +190,7 @@ document.addEventListener('DOMContentLoaded', onLoad);
<div class="card">
<div class="card-header bg-primary text-white d-flex justify-content-between align-items-center">
<h5 class="mb-0"><i class="fas fa-list me-2"></i>Reports Near You</h5>
<span class="badge bg-light text-dark">15 Reports Found</span>
<span class="badge bg-light text-dark" id="report-count">- Reports Found</span>
</div>
<div class="card-body p-0">
<div class="table-responsive">