Fix client.js

This commit is contained in:
Christian Cueni 2020-04-30 15:31:09 +02:00
parent 6b76c27c55
commit ce1e75b5f0
1 changed files with 1 additions and 2 deletions

View File

@ -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,