Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 19:53:33 +00:00
co-authored by renee-png
parent 5508356f7f
commit 8500d3abea
+3 -1
View File
@@ -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;
}