Skip to content

Commit

Permalink
feat(insights): hogql insight load on load (#18610)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra authored Nov 15, 2023
1 parent 89dd3da commit 746cdbf
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 746cdbf

Please sign in to comment.