From f2d4f876ff96a27d3857e4b078c71c47f2cbb1b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Ringstr=C3=B6m?= Date: Sat, 17 Aug 2024 11:29:05 +0200 Subject: [PATCH] CampaignID added to CreateEvent Fixes issue2054 by also sending the project ID when creating an event in the calendar week view. --- src/features/calendar/components/CalendarWeekView/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/features/calendar/components/CalendarWeekView/index.tsx b/src/features/calendar/components/CalendarWeekView/index.tsx index 6074b20a1e..f19bda5903 100644 --- a/src/features/calendar/components/CalendarWeekView/index.tsx +++ b/src/features/calendar/components/CalendarWeekView/index.tsx @@ -254,6 +254,7 @@ const CalendarWeekView = ({ focusDate, onClickDay }: CalendarWeekViewProps) => { setGhostAnchorEl(null); await createEvent({ activity_id: null, + campaign_id: campId, end_time: pendingEvent[1].toISOString(), location_id: null, start_time: pendingEvent[0].toISOString(),