diff --git a/packages/features/bookings/components/FiltersContainer.tsx b/packages/features/bookings/components/FiltersContainer.tsx index 09089f3336..373d61f54a 100644 --- a/packages/features/bookings/components/FiltersContainer.tsx +++ b/packages/features/bookings/components/FiltersContainer.tsx @@ -21,7 +21,9 @@ export function FiltersContainer({ isFiltersVisible }: FiltersContainerProps) { const searchParams = useSearchParams(); const validFilterKeys = ["userIds", "eventTypeIds", "upIds", "teamIds", "afterStartDate", "beforeEndDate"]; - const hasValidQueryParams = Array.from(searchParams.keys()).some((key) => validFilterKeys.includes(key)); + const hasValidQueryParams = Array.from(searchParams?.keys() ?? []).some((key) => + validFilterKeys.includes(key) + ); return (