diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-charts.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-charts.tsx index 3a36b814..b293d674 100644 --- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-charts.tsx +++ b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/profiles/[profileId]/profile-charts.tsx @@ -27,7 +27,7 @@ const ProfileCharts = ({ profileId, projectId }: Props) => { }, ], id: 'A', - name: '*', + name: 'screen_view', displayName: 'Events', }, ], diff --git a/apps/dashboard/src/components/report/sidebar/ReportBreakdowns.tsx b/apps/dashboard/src/components/report/sidebar/ReportBreakdowns.tsx index 5636cd1f..d070af91 100644 --- a/apps/dashboard/src/components/report/sidebar/ReportBreakdowns.tsx +++ b/apps/dashboard/src/components/report/sidebar/ReportBreakdowns.tsx @@ -16,16 +16,8 @@ import { ReportBreakdownMore } from './ReportBreakdownMore'; import type { ReportEventMoreProps } from './ReportEventMore'; export function ReportBreakdowns() { - const { projectId } = useAppParams(); const selectedBreakdowns = useSelector((state) => state.report.breakdowns); - const dispatch = useDispatch(); - const properties = useEventProperties({ - projectId, - }).map((item) => ({ - value: item, - label: item, // {item}, - })); const handleMore = (breakdown: IChartBreakdown) => { const callback: ReportEventMoreProps['onClick'] = (action) => { diff --git a/packages/trpc/src/routers/chart.ts b/packages/trpc/src/routers/chart.ts index bc332f11..9b34d6d5 100644 --- a/packages/trpc/src/routers/chart.ts +++ b/packages/trpc/src/routers/chart.ts @@ -115,7 +115,7 @@ export const chartRouter = createTRPCRouter({ .map((item) => item.replace(/\.([0-9]+)/g, '[*]')) .map((item) => `properties.${item}`); - if (event === '*') { + if (event === '*' || !event) { properties.push('name'); }