[deploy] Fix dashboard inline JS syntax error
All checks were successful
Deploy Discord Bot / deploy (push) Successful in 37s
All checks were successful
Deploy Discord Bot / deploy (push) Successful in 37s
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user