From 75abf43dccc0145fca14217e948ea07a81afe8ec Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Thu, 29 Mar 2018 11:21:03 -0400 Subject: apooolooo --- frontend/lib/withData.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'frontend/lib/withData.js') diff --git a/frontend/lib/withData.js b/frontend/lib/withData.js index 5c12ff0..76ab7d9 100644 --- a/frontend/lib/withData.js +++ b/frontend/lib/withData.js @@ -1,6 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { ApolloProvider, getDataFromTree } from 'react-apollo'; + import Head from 'next/head'; import initApollo from './initApollo'; @@ -33,16 +34,13 @@ export default ComposedComponent => const apollo = initApollo(); try { // Run all GraphQL queries - const data = await getDataFromTree(, { + await getDataFromTree(, { router: { asPath: ctx.asPath, pathname: ctx.pathname, query: ctx.query, }, client: apollo, - }).catch(err => { - console.log('CAUGHT HERE'); - console.log(err); }); } catch (error) { // console.log(ctx.query); -- cgit v1.3