Skip to content

Commit

Permalink
fix: notes page no data, page error (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
hqwuzhaoyi authored Aug 2, 2023
1 parent a31248b commit 17f3e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/notes/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export default async function Page() {
},
}).then((res) => res.json() as Promise<NoteWrappedPayload>)

return <Redirect nid={data.data.nid} />
return <Redirect nid={data.data?.nid} />
}

1 comment on commit 17f3e1c

@vercel
Copy link

@vercel vercel bot commented on 17f3e1c Aug 2, 2023

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:

shiro – ./

springtide.vercel.app
shiro-innei.vercel.app
shiro-git-main-innei.vercel.app
innei.in

Please sign in to comment.