Skip to content

Commit

Permalink
fix routing inconsistencies after a run
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff committed Aug 12, 2024
1 parent e54341a commit 512dc66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/pages/RunSummary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ export function RunSummary(): JSX.Element {
const queryClient = useQueryClient()
const returnToDash = (): void => {
closeCurrentRun()
// Eagerly clear the query cache to prevent top level redirecting back to this page.
// Eagerly clear the query caches to prevent top level redirecting back to this page.
queryClient.setQueryData([host, 'runs', 'details'], () => undefined)
queryClient.setQueryData([host, 'runs', runId, 'details'], () => undefined)
navigate('/')
}
Expand Down

0 comments on commit 512dc66

Please sign in to comment.