Skip to content

Commit

Permalink
fix(insights): Change refresh modes for dashboard to blocking (#22799)
Browse files Browse the repository at this point in the history
Change refresh modes for dashboard to blocking
  • Loading branch information
webjunkie authored Jun 7, 2024
1 parent 4d08d74 commit d5ac5b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/scenes/dashboard/dashboardLogic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ export const dashboardLogic = kea<dashboardLogicType>([
actions.loadDashboardSuccess(props.dashboard)
} else {
actions.loadDashboard({
refresh: 'async',
refresh: 'force_cache',
action: 'initial_load',
})
}
Expand Down Expand Up @@ -994,7 +994,7 @@ export const dashboardLogic = kea<dashboardLogicType>([
const queryId = `${dashboardQueryId}::${uuid()}`
const queryStartTime = performance.now()
const apiUrl = `api/projects/${values.currentTeamId}/insights/${insight.id}/?${toParams({
refresh: hardRefreshWithoutCache ? 'force_async' : 'async',
refresh: hardRefreshWithoutCache ? 'force_blocking' : 'blocking',
from_dashboard: dashboardId, // needed to load insight in correct context
client_query_id: queryId,
session_id: currentSessionId(),
Expand Down

0 comments on commit d5ac5b5

Please sign in to comment.