[deploy] Fix dashboard inline JS syntax error
All checks were successful
Deploy Discord Bot / deploy (push) Successful in 37s

This commit is contained in:
Pascal Prießnitz
2025-12-04 12:22:31 +01:00
parent bebca808b0
commit cfc4559312
6 changed files with 8733 additions and 152 deletions

View File

@@ -2317,7 +2317,7 @@ router.get('/', (req, res) => {
settingsForm.addEventListener('submit', async (e) => {
e.preventDefault();
if (!currentGuild) return;
const form = new FormData(e.currentTarget as HTMLFormElement);
const form = new FormData(e.currentTarget);
const payload: any = Object.fromEntries(form.entries());
payload.supportRoleId = payload.supportRoleId || undefined;
payload.guildId = currentGuild;
@@ -2348,7 +2348,7 @@ router.get('/', (req, res) => {
if (panelSubmit) {
panelSubmit.addEventListener('click', async () => {
if (!currentGuild) return;
const formEl = document.getElementById('panelForm') as HTMLFormElement | null;
const formEl = document.getElementById('panelForm');
const form = formEl ? new FormData(formEl) : null;
const channelId = form?.get('channelId');
const panelTitle = form?.get('panelTitle');