From ce1e75b5f06537af17da59432c2772ca09540f55 Mon Sep 17 00:00:00 2001 From: Christian Cueni Date: Thu, 30 Apr 2020 15:31:09 +0200 Subject: [PATCH] Fix client.js --- client/src/graphql/client.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/src/graphql/client.js b/client/src/graphql/client.js index 95262756..45a6838d 100644 --- a/client/src/graphql/client.js +++ b/client/src/graphql/client.js @@ -7,7 +7,6 @@ import fetch from 'unfetch' import {typeDefs} from '@/graphql/typedefs'; import {resolvers} from '@/graphql/resolvers'; -export default function (uri, networkErrorCallback) { const writeLocalCache = cache => { // we use the cache as our local state cache.writeData({ @@ -28,7 +27,7 @@ const writeLocalCache = cache => { }); }; -export default function (uri) { +export default function (uri, networkErrorCallback) { const httpLink = createHttpLink({ // uri: process.env.NODE_ENV !== 'production' ? 'http://localhost:8000/api/graphql/' : '/api/graphql/', uri,