[deploy] Guard module list rendering when element missing
All checks were successful
Deploy Discord Bot / deploy (push) Successful in 37s

This commit is contained in:
Pascal Prießnitz
2025-12-04 13:00:24 +01:00
parent f4f4efb722
commit aefb5b3c72

View File

@@ -2232,6 +2232,7 @@ router.get('/', (req, res) => {
if (!res.ok) return;
const data = await res.json();
const list = document.getElementById('moduleList');
if (!list) return;
list.innerHTML = '';
let ticketsActive = false;
let statuspageActive = false;