From 8500d3abea75ff44b7cdd5137c8b10539ee4c4bc Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sat, 18 Apr 2026 19:53:33 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/calendar.index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/calendar.index.tsx b/src/routes/calendar.index.tsx index 291bfc8..8c37a17 100644 --- a/src/routes/calendar.index.tsx +++ b/src/routes/calendar.index.tsx @@ -242,7 +242,9 @@ function CalendarPage() { const visibleEvents = useMemo(() => { return events.filter((e) => { - if (!activeTypes.has(e.event_type)) return false; + // Treat unknown event types as "other" so they remain visible + const typeKey = EVENT_TYPE_MAP[e.event_type] ? e.event_type : "other"; + if (!activeTypes.has(typeKey)) return false; if (activeStaff.size > 0) { if (!e.owner_id || !activeStaff.has(e.owner_id)) return false; }