diff --git a/src/components/dashboard/Officer_EventManagement.astro b/src/components/dashboard/Officer_EventManagement.astro index 87b39fd..20a8e02 100644 --- a/src/components/dashboard/Officer_EventManagement.astro +++ b/src/components/dashboard/Officer_EventManagement.astro @@ -2202,6 +2202,9 @@ declare global { createFormData.append(key, String(value)); }); + // Initialize attendees as empty array + createFormData.append("attendees", JSON.stringify([])); + // Add new files selectedFiles.forEach((file: File) => { createFormData.append("files", file);