Unverified Commit 44b4070f authored by Ben Goerdt's avatar Ben Goerdt Committed by GitHub

Revert "Fix assignment of props in WithApollo.getInitialProps (#11236)" (#11384)

This reverts commit db57ad3b.
parent ee008135
...@@ -137,9 +137,9 @@ export const withApollo = ({ ssr = false } = {}) => PageComponent => { ...@@ -137,9 +137,9 @@ export const withApollo = ({ ssr = false } = {}) => PageComponent => {
// we need to modify their props a little. // we need to modify their props a little.
let props let props
if (inAppContext) { if (inAppContext) {
props = { pageProps: { ...pageProps, apolloClient } }
} else {
props = { ...pageProps, apolloClient } props = { ...pageProps, apolloClient }
} else {
props = { pageProps: { ...pageProps, apolloClient } }
} }
// Take the Next.js AppTree, determine which queries are needed to render, // Take the Next.js AppTree, determine which queries are needed to render,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment