From b7de01b0add69a6c1d54dc0f5e0a88ba41af6301 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Mon, 8 May 2017 15:47:08 -0300 Subject: [PATCH] no console --- client/coral-framework/hocs/withReaction.js | 22 ++++++++++----------- 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/client/coral-framework/hocs/withReaction.js b/client/coral-framework/hocs/withReaction.js index b838941ad..ee478bb6d 100644 --- a/client/coral-framework/hocs/withReaction.js +++ b/client/coral-framework/hocs/withReaction.js @@ -138,7 +138,6 @@ export default reaction => WrappedComponent => { } }, update: (proxy, mutationResult) => { - console.log(isReaction); const fragmentId = `Comment_${reactionData.item_id}`; // Read the data from our cache for this query. @@ -149,7 +148,6 @@ export default reaction => WrappedComponent => { // Add our comment from the mutation to the end. let idx = data.action_summaries.findIndex(isReaction); - console.log(data.action_summaries); // Check whether we already reactioned this comment. if (idx >= 0 && data.action_summaries[idx].current_user) { @@ -194,21 +192,21 @@ export default reaction => WrappedComponent => { withFragments({ root: gql` fragment ${capitalize(reaction)}Button_root on RootQuery { - me { - status - } + me { + status + } } `, comment: gql` fragment ${capitalize(reaction)}Button_comment on Comment { - action_summaries { - ... on ${capitalize(reaction)}ActionSummary { - count - current_user { - id + action_summaries { + ... on ${capitalize(reaction)}ActionSummary { + count + current_user { + id + } } - } - } + } }` }), connect(null, mapDispatchToProps),