: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(taxonomic-filter): skip entries without a name when caching prop defs (#60835)
Sam Pennington34fac0008c15
diff --git a/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx b/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsxindex 1bdf4577c438..9d03913bc8b4 100644--- a/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx+++ b/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx@@ -1981,7 +1981,11 @@ export const taxonomicFilterLogic = kea<taxonomicFilterLogicType>([groupType === TaxonomicFilterGroupType.PersonProperties ||groupType === TaxonomicFilterGroupType.NumericalEventProperties)) {- const propertyDefinitions: PropertyDefinition[] = results.results as PropertyDefinition[]+ // results.results can contain loading skeletons or undefined entries that have no+ // `name`; those would crash `Object.fromEntries`/`.name` below, so skip them.+ const propertyDefinitions = (results.results as PropertyDefinition[]).filter(+ (propertyDefinition) => propertyDefinition?.name+ )const apiType = groupType === TaxonomicFilterGroupType.PersonProperties ? 'person' : 'event'const newPropertyDefinitions = Object.fromEntries(propertyDefinitions.map((propertyDefinition) => [