Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
5508356f7f
commit
8500d3abea
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user