From 57eef5866b8058a50b39983b828fd60de53079dd Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Mon, 26 Jan 2026 22:43:35 -0800 Subject: [PATCH] remove event filter for non-event pages --- src/components/input/FilterEditForm.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/input/FilterEditForm.tsx b/src/components/input/FilterEditForm.tsx index 9221e3a2..87acc515 100644 --- a/src/components/input/FilterEditForm.tsx +++ b/src/components/input/FilterEditForm.tsx @@ -22,6 +22,7 @@ export function FilterEditForm({ websiteId, onChange, onClose }: FilterEditFormP const [currentCohort, setCurrentCohort] = useState(cohort); const { isMobile } = useMobile(); const excludeFilters = pathname.includes('/pixels') || pathname.includes('/links'); + const excludeEvent = !pathname.endsWith('/events'); const handleReset = () => { setCurrentFilters([]); @@ -62,7 +63,11 @@ export function FilterEditForm({ websiteId, onChange, onClose }: FilterEditFormP value={currentFilters} onChange={setCurrentFilters} exclude={ - excludeFilters ? ['path', 'title', 'hostname', 'distinctId', 'tag', 'event'] : [] + excludeFilters + ? ['path', 'title', 'hostname', 'distinctId', 'tag', 'event'] + : excludeEvent + ? ['event'] + : [] } />