improve(funnel): make sure group by profile id works as you would think

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-11-23 21:51:59 +01:00
parent 2f4e3596c1
commit 56edb91dd0
12 changed files with 390 additions and 285 deletions

View File

@@ -13,7 +13,16 @@ import { Chart } from './chart';
export function ReportFunnelChart() {
const {
report: { events, range, projectId, funnelWindow, funnelGroup },
report: {
events,
range,
projectId,
funnelWindow,
funnelGroup,
startDate,
endDate,
previous,
},
isLazyLoading,
} = useReportChartContext();
@@ -26,8 +35,10 @@ export function ReportFunnelChart() {
breakdowns: [],
funnelWindow,
funnelGroup,
previous: false,
previous,
metric: 'sum',
startDate,
endDate,
};
const res = api.chart.funnel.useQuery(input, {
keepPreviousData: true,