no console

This commit is contained in:
Belen Curcio
2017-05-08 15:47:08 -03:00
parent 011e5da26f
commit b7de01b0ad
+10 -12
View File
@@ -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),