Skip to content

Commit

Permalink
fix(app): fix routing inconsistencies after a run (#15966)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjhuff authored Aug 12, 2024
1 parent 815c38c commit 0cb4832
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/pages/RunSummary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,9 @@ export function RunSummary(): JSX.Element {
// TODO(jh, 08-02-24): Revisit useCurrentRunRoute and top level redirects.
const queryClient = useQueryClient()
const returnToDash = (): void => {
// Eagerly clear the query cache to prevent top level redirecting back to this page.
closeCurrentRun()
// 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 0cb4832

Please sign in to comment.