Skip to content

Commit

Permalink
also fix in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
jgunnCO committed Oct 12, 2023
1 parent 37435af commit 9c85ef9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/admin/src/pages/_app.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ const MyApp = ({ Component, pageProps, cookies }) => {

MyApp.getInitialProps = async (appContext) => {
const appProps = await App.getInitialProps(appContext);
const cookies = appContext.ctx.req.cookies;
const cookies =
typeof window === 'undefined' ? {} : appContext.ctx.req.cookies;
return { ...appProps, cookies };
};

Expand Down

0 comments on commit 9c85ef9

Please sign in to comment.