Skip to content

Build your personal knowledge base with Trilium Notes

Update apps/client/src/widgets/collections/calendar/index.tsx

BeatLink65a1931dae01
diff --git a/apps/client/src/widgets/collections/calendar/index.tsx b/apps/client/src/widgets/collections/calendar/index.tsx
index 89445fe4b5..ead01078e6 100644
--- a/apps/client/src/widgets/collections/calendar/index.tsx
+++ b/apps/client/src/widgets/collections/calendar/index.tsx
@@ -165,8 +165,8 @@ export default function CalendarView({ note, noteIds }: ViewModeProps<CalendarVi
firstDay={firstDayOfWeek ?? 0}
weekends={!hideWeekends}
weekNumbers={weekNumbers}
- slotDuration={slotDuration ?? DEFAULT_SLOT_DURATION}
- slotLabelInterval={slotLabelInterval ?? DEFAULT_SLOT_LABEL_INTERVAL}
+ slotDuration={slotDuration || DEFAULT_SLOT_DURATION}
+ slotLabelInterval={slotLabelInterval || DEFAULT_SLOT_LABEL_INTERVAL}
height="90%"
nowIndicator
handleWindowResize={false}