diff --git a/admin/DashboardController.php b/admin/DashboardController.php index 012ae26..138f4e9 100644 --- a/admin/DashboardController.php +++ b/admin/DashboardController.php @@ -2116,10 +2116,12 @@ function formatDate(d) { // ─── Auto-resize textarea ──────────────────────────────────────────────────── const msgInput = document.getElementById('msgInput'); -msgInput.addEventListener('input', function() { - this.style.height = 'auto'; - this.style.height = Math.min(this.scrollHeight, 120) + 'px'; -}); +if (msgInput) { + msgInput.addEventListener('input', function() { + this.style.height = 'auto'; + this.style.height = Math.min(this.scrollHeight, 120) + 'px'; + }); +} loadConvs(); setInterval(loadConvs, 15000);