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;