Skip to content

Commit c63d099

Browse files
committed
chore: fix passing weekly recurring to calendar event
1 parent a6092d5 commit c63d099

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/frontend/src/components/questionnaire/calendar/EntryCalendar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ export function EntryCalendar({
7575
useEffect(() => {
7676
if (entries) {
7777
setEvents([
78-
...entries.map(({ startedAt, endedAt, weekday, carer, entryLanguages, id }) => ({
78+
...entries.map(({ startedAt, endedAt, weekday, carer, weeklyRecurring, entryLanguages, id }) => ({
7979
id: id.toString(),
8080
start: getDateFromTimeAndWeekday(startedAt, weekday),
8181
end: getDateFromTimeAndWeekday(endedAt, weekday),
8282
title: carer.name,
83-
extendedProps: { entryLanguages },
83+
extendedProps: { entryLanguages, weeklyRecurring },
8484
backgroundColor: carer.color ?? theme.colors[theme.primaryColor][4],
8585
borderColor: carer.color ?? theme.colors[theme.primaryColor][4],
8686
})),

0 commit comments

Comments
 (0)