diff --git a/frontend/src/lib/components/TaxonomicFilter/cohortFilterUtils.ts b/frontend/src/lib/components/TaxonomicFilter/cohortFilterUtils.ts index 89ba438fd2f..0ecf87bdc05 100644 --- a/frontend/src/lib/components/TaxonomicFilter/cohortFilterUtils.ts +++ b/frontend/src/lib/components/TaxonomicFilter/cohortFilterUtils.ts @@ -10,7 +10,7 @@ function isCohortCriteriaGroupFilter( const hasBehavioralFilter = (cohort: CohortType, allCohorts: CohortType[]): boolean => { const checkCriteriaGroup = (group: CohortCriteriaGroupFilter): boolean => { - return group.values.some((value) => { + return group.values?.some((value) => { if (isCohortCriteriaGroupFilter(value)) { return checkCriteriaGroup(value) }