From bc9bf8cdecb9cbdd195d528228b7161cf3980fd2 Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Tue, 7 Jan 2020 16:11:17 +0100 Subject: [PATCH] Remove modules from manual cache definition --- 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 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; } };