0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 00:47:50 +01:00

don't end query if failed if new one came in already

This commit is contained in:
Marius Andra 2021-07-14 20:15:05 +02:00
parent 0721f96352
commit 2e58346869
2 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,7 @@ export const pathsLogic = kea<pathsLogicType<PathNode, PathResult>>({
try {
paths = await api.get(`api/insight/path${params ? `/?${params}` : ''}`)
} catch (e) {
breakpoint()
insightLogic.actions.endQuery(queryId, ViewType.PATHS, null, e)
return { paths: [], filter, error: true }
}

View File

@ -67,6 +67,7 @@ export const retentionTableLogic = kea<retentionTableLogicType>({
try {
res = await api.get(`api/insight/retention/?${urlParams}`)
} catch (e) {
breakpoint()
insightLogic.actions.endQuery(queryId, ViewType.RETENTION, null, e)
return []
}