diff --git a/src/lib/navigation/Redirect.tsx b/src/lib/navigation/Redirect.tsx index c4cc3259..99dc02a9 100644 --- a/src/lib/navigation/Redirect.tsx +++ b/src/lib/navigation/Redirect.tsx @@ -4,14 +4,14 @@ import { Destination } from "./types"; import { navigate } from "./navigate"; type RedirectProps = { - to: Destination; + to?: Destination; merge?: boolean | string[]; push?: boolean; fallback?: ReactElement; }; const Redirect: FC = ({ - to, + to = {}, merge, push = false, fallback = null,