From b4cd51d9aa22b6e0eb93cb573d01c05ebe3b3adf Mon Sep 17 00:00:00 2001 From: Ben Goerdt Date: Thu, 26 Mar 2020 18:14:15 -0500 Subject: [PATCH] Revert "Fix assignment of props in WithApollo.getInitialProps (#11236)" This reverts commit db57ad3b301503cf12ea1a4ce5c28d39c8edc534. --- examples/with-apollo/lib/apollo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/with-apollo/lib/apollo.js b/examples/with-apollo/lib/apollo.js index 15a7a6202772e..bff375c2cf927 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,