Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Jun 19, 2024
1 parent cbc2e39 commit 0f7c752
Showing 1 changed file with 23 additions and 34 deletions.
57 changes: 23 additions & 34 deletions frontend/src/scenes/web-analytics/webAnalyticsLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -615,40 +615,36 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([
sampling,
doPathCleaning: isPathCleaningEnabled,
limit: 10,
useSessionsTable,
},
embedded: false,
},
insightProps: createInsightProps(TileId.PATHS, PathTab.INITIAL_PATH),
canOpenModal: true,
showPathCleaningControls: true,
},
useSessionsTable
? {
id: PathTab.EXIT_PATH,
title: 'Top exit paths',
linkText: 'Exit path',
query: {
full: true,
kind: NodeKind.DataTableNode,
source: {
kind: NodeKind.WebStatsTableQuery,
properties: webAnalyticsFilters,
breakdownBy: WebStatsBreakdown.ExitPage,
dateRange,
includeScrollDepth: false,
sampling,
doPathCleaning: isPathCleaningEnabled,
limit: 10,
useSessionsTable,
},
embedded: false,
},
insightProps: createInsightProps(TileId.PATHS, PathTab.EXIT_PATH),
canOpenModal: true,
showPathCleaningControls: true,
}
: undefined,
{
id: PathTab.EXIT_PATH,
title: 'Top exit paths',
linkText: 'Exit path',
query: {
full: true,
kind: NodeKind.DataTableNode,
source: {
kind: NodeKind.WebStatsTableQuery,
properties: webAnalyticsFilters,
breakdownBy: WebStatsBreakdown.ExitPage,
dateRange,
includeScrollDepth: false,
sampling,
doPathCleaning: isPathCleaningEnabled,
limit: 10,
},
embedded: false,
},
insightProps: createInsightProps(TileId.PATHS, PathTab.EXIT_PATH),
canOpenModal: true,
showPathCleaningControls: true,
},
] as (TabsTileTab | undefined)[]
).filter(isNotNil),
},
Expand All @@ -675,7 +671,6 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([
dateRange,
sampling,
limit: 10,
useSessionsTable,
},
},
insightProps: createInsightProps(TileId.SOURCES, SourceTab.CHANNEL),
Expand All @@ -701,7 +696,6 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([
dateRange,
sampling,
limit: 10,
useSessionsTable,
},
},
insightProps: createInsightProps(TileId.SOURCES, SourceTab.REFERRING_DOMAIN),
Expand All @@ -722,7 +716,6 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([
dateRange,
sampling,
limit: 10,
useSessionsTable,
},
},
insightProps: createInsightProps(TileId.SOURCES, SourceTab.UTM_SOURCE),
Expand All @@ -742,7 +735,6 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([
dateRange,
sampling,
limit: 10,
useSessionsTable,
},
},
insightProps: createInsightProps(TileId.SOURCES, SourceTab.UTM_MEDIUM),
Expand All @@ -762,7 +754,6 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([
dateRange,
sampling,
limit: 10,
useSessionsTable,
},
},
insightProps: createInsightProps(TileId.SOURCES, SourceTab.UTM_CAMPAIGN),
Expand All @@ -782,7 +773,6 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([
dateRange,
sampling,
limit: 10,
useSessionsTable,
},
},
insightProps: createInsightProps(TileId.SOURCES, SourceTab.UTM_CONTENT),
Expand All @@ -802,7 +792,6 @@ export const webAnalyticsLogic = kea<webAnalyticsLogicType>([
dateRange,
sampling,
limit: 10,
useSessionsTable,
},
},
insightProps: createInsightProps(TileId.SOURCES, SourceTab.UTM_TERM),
Expand Down

0 comments on commit 0f7c752

Please sign in to comment.