Skip to content

Commit

Permalink
feat(web): allow autosuggest page as entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Nov 8, 2023
1 parent 59e66a1 commit 1cf7afe
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 @@ -182,7 +182,7 @@ export function MyApp({ Component, pageProps, router }: AppProps) {
const fallback = useMemo(() => <LoadingPage />, [])

useEffect(() => {
if (process.env.NODE_ENV !== 'development' && !['/', '/loading'].includes(router.pathname)) {
if (process.env.NODE_ENV !== 'development' && !['/', '/loading', '/dataset-suggest'].includes(router.pathname)) {
void router.replace('/') // eslint-disable-line no-void
}

Expand Down

0 comments on commit 1cf7afe

Please sign in to comment.