diff --git a/examples/with-apollo/lib/apollo.js b/examples/with-apollo/lib/apollo.js index 15a7a6202772e44..bff375c2cf927c7 100644 --- a/examples/with-apollo/lib/apollo.js +++ b/examples/with-apollo/lib/apollo.js @@ -137,9 +137,9 @@ export const withApollo = ({ ssr = false } = {}) => PageComponent => { // we need to modify their props a little. let props if (inAppContext) { - props = { pageProps: { ...pageProps, apolloClient } } - } else { props = { ...pageProps, apolloClient } + } else { + props = { pageProps: { ...pageProps, apolloClient } } } // Take the Next.js AppTree, determine which queries are needed to render,