Skip to content

Commit

Permalink
feat(insights): hogql insight load on load
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Nov 14, 2023
1 parent 2bb378b commit 990e6b7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/src/queries/nodes/DataNode/dataNodeLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,13 @@ export const dataNodeLogic = kea<dataNodeLogicType>([
}

if (props.cachedResults && !refresh) {
return props.cachedResults
if (
props.cachedResults['result'] ||
props.cachedResults['results'] ||
!isInsightQueryNode(props.query)
) {
return props.cachedResults
}
}

if (!values.currentTeamId) {
Expand Down

0 comments on commit 990e6b7

Please sign in to comment.