diff --git a/frontend/src/scenes/dashboard/Dashboard.tsx b/frontend/src/scenes/dashboard/Dashboard.tsx index f501bcd732e44e..00d437ac1bc44b 100644 --- a/frontend/src/scenes/dashboard/Dashboard.tsx +++ b/frontend/src/scenes/dashboard/Dashboard.tsx @@ -122,7 +122,7 @@ function DashboardScene(): JSX.Element { dashboardFilters={dashboardFilters} setDates={setDates} setProperties={setProperties} - groupsTaxonomicTypes={[ + taxonomicGroupTypes={[ TaxonomicFilterGroupType.EventProperties, TaxonomicFilterGroupType.PersonProperties, TaxonomicFilterGroupType.EventFeatureFlags, diff --git a/frontend/src/scenes/dashboard/DashboardEditBar.tsx b/frontend/src/scenes/dashboard/DashboardEditBar.tsx index 56d83e803afd3d..8f14cb36f3c31f 100644 --- a/frontend/src/scenes/dashboard/DashboardEditBar.tsx +++ b/frontend/src/scenes/dashboard/DashboardEditBar.tsx @@ -15,7 +15,7 @@ interface DashboardEditBarProps { canEditDashboard: boolean setDates: (dateFrom: string | null, dateTo: string | null) => void setProperties: (properties: AnyPropertyFilter[]) => void - groupsTaxonomicTypes: TaxonomicFilterGroupType[] + taxonomicGroupTypes: TaxonomicFilterGroupType[] onPendingChanges?: (stale: boolean) => void } @@ -25,7 +25,7 @@ export function DashboardEditBar({ canEditDashboard, setDates, setProperties, - groupsTaxonomicTypes, + taxonomicGroupTypes, onPendingChanges, }: DashboardEditBarProps): JSX.Element { const [editMode, setEditMode] = useState(false) @@ -93,15 +93,7 @@ export function DashboardEditBar({ onChange={setTempProperties} pageKey={'dashboard_' + dashboard?.id} propertyFilters={tempProperties} - taxonomicGroupTypes={[ - TaxonomicFilterGroupType.EventProperties, - TaxonomicFilterGroupType.PersonProperties, - TaxonomicFilterGroupType.EventFeatureFlags, - ...groupsTaxonomicTypes, - TaxonomicFilterGroupType.Cohorts, - TaxonomicFilterGroupType.Elements, - TaxonomicFilterGroupType.HogQLExpression, - ]} + taxonomicGroupTypes={taxonomicGroupTypes} /> {canEditDashboard && !editMode ? ( setEditMode(true)}>