mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-25 21:01:54 +08:00
🐛 Fix getInDepthAnalyticsData invalid request when typebot is not defined
Closes #2145
This commit is contained in:
parent
9a1907d7c7
commit
30d5ceb94b
@ -35,11 +35,11 @@ export const AnalyticsGraphContainer = ({
|
||||
const { typebot, publishedTypebot } = useTypebot();
|
||||
const { data } = trpc.analytics.getInDepthAnalyticsData.useQuery(
|
||||
{
|
||||
typebotId: typebot?.id as string,
|
||||
typebotId: typebot!.id,
|
||||
timeFilter,
|
||||
timeZone,
|
||||
},
|
||||
{ enabled: isDefined(publishedTypebot) },
|
||||
{ enabled: isDefined(typebot?.id) && isDefined(publishedTypebot) },
|
||||
);
|
||||
|
||||
const edgesWithTotalUsers = useMemo(() => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user