Skip to content

Commit

Permalink
Fix pageProps type
Browse files Browse the repository at this point in the history
  • Loading branch information
aviupadhyayula committed Feb 19, 2024
1 parent 9c71b0a commit e89bb3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/renderPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function renderPage<T>(
const originalPageProps = async () => {
let pageProps = {}
if (Page.getInitialProps) {
pageProps = await Page.getInitialProps(ctx)
pageProps = (await Page.getInitialProps(ctx)) || {}
}
const perms = await fetchPermissions()
return [pageProps, perms]
Expand Down

0 comments on commit e89bb3f

Please sign in to comment.