Skip to content

Commit a7cae69

Browse files
committed
fix redirect
1 parent 7b9b2ab commit a7cae69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bun-react-ssr",
33
"module": "index.tsx",
4-
"version": "0.0.4",
4+
"version": "0.0.5",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/codehz/bun-react-ssr"

router/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const RouterHost = ({
6464
cachedFetchServerSideProps(pathname),
6565
]);
6666
if (currentVersion === version.current) {
67-
if (props.redirect) {
67+
if (props?.redirect) {
6868
navigate(props.redirect);
6969
} else {
7070
setCurrent(

0 commit comments

Comments
 (0)