From d0395abc3afc47de47de3cc0fe4db72e29e16700 Mon Sep 17 00:00:00 2001 From: Ryderjj89 Date: Mon, 26 May 2025 16:20:56 -0400 Subject: [PATCH] Fix event_conclusion_message being stored as [object Object] in database - Removed duplicate FormData.append() call for event_conclusion_message - The field was being appended twice: once in the forEach loop and once explicitly - This caused the backend to receive malformed data resulting in [object Object] - Now the field is only appended once through the normal form processing loop --- frontend/src/components/EventForm.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/frontend/src/components/EventForm.tsx b/frontend/src/components/EventForm.tsx index 13a5dd8..006480e 100644 --- a/frontend/src/components/EventForm.tsx +++ b/frontend/src/components/EventForm.tsx @@ -128,9 +128,6 @@ const EventForm: React.FC = () => { } }); - // Append event conclusion message - submitData.append('event_conclusion_message', String(formData.event_conclusion_message)); // Ensure it's a string - // Append wallpaper if selected if (wallpaper) {