fix: reports page — add asset lat/lng to /api/visits for map button, fix null field guard in form error handler

This commit is contained in:
2026-05-20 22:58:50 -04:00
parent 40fdc9dca6
commit 51f9bcfacd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -3927,7 +3927,7 @@
if (field) field.classList.add('error');
if (errEl) { errEl.textContent = '⚠️ ' + msg; errEl.classList.add('visible'); }
// Mark parent section
const section = field.closest('.form-collapse-section');
const section = field ? field.closest('.form-collapse-section') : null;
if (section) { section.classList.add('has-error'); openFormSection(section.id); }
}