Skip to content

Commit

Permalink
fix: Navigating to settings or filters for the first time doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
elcharitas committed Apr 4, 2024
1 parent 8eb6ad2 commit 4e8b801
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/frontend/src/MobileApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,16 @@ const MobileApp: React.FC = () => {
path={route.path}
to={route.redirectTo}
exact={route.exact ?? false}
push
/>
);
}
if (route.type === "fallback") {
return (
<Route
render={() => (
<Redirect to={route.redirectTo} />
)}
<Redirect
key={route.redirectTo}
to={route.redirectTo}
push
/>
);
}
Expand Down

0 comments on commit 4e8b801

Please sign in to comment.