diff --git a/client/src/graphql/client.js b/client/src/graphql/client.js index a6304945..9d287d8b 100644 --- a/client/src/graphql/client.js +++ b/client/src/graphql/client.js @@ -78,8 +78,6 @@ export default function (uri) { assignment: (_, args, {getCacheKey}) => getCacheKey({__typename: 'AssignmentNode', id: args.id}), objective: (_, args, {getCacheKey}) => getCacheKey({__typename: 'ObjectiveNode', id: args.id}), objectiveGroup: (_, args, {getCacheKey}) => getCacheKey({__typename: 'ObjectiveGroupNode', id: args.id}), - // todo: remove, the new client seems to cache this correctly by itself - // module: (_, args, {getCacheKey}) => getCacheKey({__typename: 'ModuleNode', id: args.slug}), projectEntry: (_, args, {getCacheKey}) => getCacheKey({__typename: 'ProjectEntryNode', id: args.id}), } } @@ -93,6 +91,7 @@ export default function (uri) { try { return cache.originalReadQuery(...args); } catch (err) { + console.error(err); return undefined; } };