Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(persons): remove unused navigateToCohort action (#104031)

Thomas Obermüller610ac052d4d9
diff --git a/products/persons/frontend/logics/personsLogic.tsx b/products/persons/frontend/logics/personsLogic.tsx
index e121c9e3f3a3..be16dd510f5c 100644
--- a/products/persons/frontend/logics/personsLogic.tsx
+++ b/products/persons/frontend/logics/personsLogic.tsx
@@ -259,9 +259,6 @@ export interface personsLogicActions {
url: string | null
}
}
- navigateToCohort: (cohort: CohortType) => {
- cohort: CohortType
- }
navigateToTab: (tab: PersonsTabType) => {
tab: PersonsTabType
}
@@ -375,7 +372,6 @@ export const personsLogic = kea<personsLogicType>([
setHiddenListProperties: (payload: AnyPropertyFilter[]) => ({ payload }),
editProperty: (key: string, newValue?: string | number | boolean | null) => ({ key, newValue }),
deleteProperty: (key: string) => ({ key }),
- navigateToCohort: (cohort: CohortType) => ({ cohort }),
navigateToTab: (tab: PersonsTabType) => ({ tab }),
setActiveTab: (tab: PersonsTabType) => ({ tab }),
setSplitMergeModalShown: (shown: boolean) => ({ shown }),
@@ -760,9 +756,6 @@ export const personsLogic = kea<personsLogicType>([
}
}
},
- navigateToCohort: ({ cohort }) => {
- router.actions.push(urls.cohort(cohort.id))
- },
})),
trackedActionToUrl(({ values, props }) => ({
setListFilters: () => {