From f4f4efb722561eed5930d7f9f119ec80e04a45b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Prie=C3=9Fnitz?= Date: Thu, 4 Dec 2025 12:58:06 +0100 Subject: [PATCH] [deploy] Remove leftover TS casts in dashboard settings --- src/web/routes/dashboard.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/web/routes/dashboard.ts b/src/web/routes/dashboard.ts index ce6426c..a304707 100644 --- a/src/web/routes/dashboard.ts +++ b/src/web/routes/dashboard.ts @@ -1760,9 +1760,9 @@ router.get('/', (req, res) => { const welcomeChannelInput = document.querySelector('input[name="welcomeChannelId"]'); const logChannelInput = document.querySelector('input[name="logChannelId"]'); const supportRoleInput = document.querySelector('input[name="supportRoleId"]'); - if (welcomeChannelInput) (welcomeChannelInput as HTMLInputElement).value = cfg.welcomeChannelId || ''; - if (logChannelInput) (logChannelInput as HTMLInputElement).value = cfg.logChannelId || ''; - if (supportRoleInput) (supportRoleInput as HTMLInputElement).value = cfg.supportRoleId || ''; + if (welcomeChannelInput) welcomeChannelInput.value = cfg.welcomeChannelId || ''; + if (logChannelInput) logChannelInput.value = cfg.logChannelId || ''; + if (supportRoleInput) supportRoleInput.value = cfg.supportRoleId || ''; automodConfigCache = cfg; modulesCache['ticketsEnabled'] = cfg.ticketsEnabled !== false; modulesCache['automodEnabled'] = cfg.automodEnabled !== false;