Skip to content

Commit

Permalink
more types
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Oct 2, 2024
1 parent e1dda95 commit d12c958
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/scenes/insights/InsightPageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import { userLogic } from 'scenes/userLogic'

import { tagsModel } from '~/models/tagsModel'
import { DataTableNode, NodeKind } from '~/queries/schema'
import { isDataTableNode, isDataVisualizationNode, isHogQLQuery } from '~/queries/utils'
import { isDataTableNode, isDataVisualizationNode, isEventsQuery, isHogQLQuery } from '~/queries/utils'
import {
ExporterFormat,
InsightLogicProps,
Expand Down Expand Up @@ -90,8 +90,7 @@ export function InsightPageHeader({ insightLogicProps }: { insightLogicProps: In
const [addToDashboardModalOpen, setAddToDashboardModalOpenModal] = useState<boolean>(false)

const showCohortButton =
isHogQLQuery(query) ||
((isDataTableNode(query) || isDataVisualizationNode(query)) && isHogQLQuery(query.source))
isDataTableNode(query) || isDataVisualizationNode(query) || isHogQLQuery(query) || isEventsQuery(query)

return (
<>
Expand Down

0 comments on commit d12c958

Please sign in to comment.