Skip to content

Commit

Permalink
Merge pull request #863 from nextstrain/fix/web-reload-tree-crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov authored Jun 28, 2022
2 parents f923f1c + cf5fada commit 0f7c523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages_rs/nextclade-web/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export function MyApp({ Component, pageProps, router }: AppProps) {
const fallback = useMemo(() => <Loading />, [])

useEffect(() => {
if (process.env.NODE_ENV !== 'development' && router.pathname === '/results') {
if (process.env.NODE_ENV !== 'development' && router.pathname !== '/') {
void router.replace('/') // eslint-disable-line no-void
}

Expand Down

1 comment on commit 0f7c523

@vercel
Copy link

@vercel vercel bot commented on 0f7c523 Jun 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nextclade – ./

nextclade-git-master-nextstrain.vercel.app
nextclade-nextstrain.vercel.app
nextclade.vercel.app

Please sign in to comment.