From e055a3e4d4c07855f241c60c06c41b9f6d329791 Mon Sep 17 00:00:00 2001 From: okbel Date: Thu, 1 Mar 2018 16:39:58 -0300 Subject: [PATCH] Adding rootquery support --- .../src/tabs/stream/containers/Comment.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/client/coral-embed-stream/src/tabs/stream/containers/Comment.js b/client/coral-embed-stream/src/tabs/stream/containers/Comment.js index 4e91ce9d2..e5d42a86e 100644 --- a/client/coral-embed-stream/src/tabs/stream/containers/Comment.js +++ b/client/coral-embed-stream/src/tabs/stream/containers/Comment.js @@ -97,16 +97,11 @@ const singleCommentFragment = gql` edited editableUntil } - ${getSlotFragmentSpreads(slots, 'root')} ${getSlotFragmentSpreads(slots, 'comment')} - ...${getDefinitionName(CommentBox.fragments.root)} ...${getDefinitionName(CommentBox.fragments.comment)} - ...${getDefinitionName(ReplyBox.fragments.root)} ...${getDefinitionName(ReplyBox.fragments.comment)} } - ${CommentBox.fragments.root} ${CommentBox.fragments.comment} - ${ReplyBox.fragments.root} ${ReplyBox.fragments.comment} `; @@ -119,7 +114,11 @@ const withCommentFragments = withFragments({ } } ${getSlotFragmentSpreads(slots, 'root')} + ...${getDefinitionName(CommentBox.fragments.root)} + ...${getDefinitionName(ReplyBox.fragments.root)} } + ${CommentBox.fragments.root} + ${ReplyBox.fragments.root} `, asset: gql` fragment CoralEmbedStream_Comment_asset on Asset {