From dcddfa4f394151dbb00f10c5e831607c43a7a04f Mon Sep 17 00:00:00 2001 From: okbel Date: Mon, 5 Mar 2018 14:46:09 -0300 Subject: [PATCH] Adding fragments to the slot --- client/coral-admin/src/containers/UserDetailComment.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/coral-admin/src/containers/UserDetailComment.js b/client/coral-admin/src/containers/UserDetailComment.js index f9534fdf1..490e7a890 100644 --- a/client/coral-admin/src/containers/UserDetailComment.js +++ b/client/coral-admin/src/containers/UserDetailComment.js @@ -4,6 +4,9 @@ import withFragments from 'coral-framework/hocs/withFragments'; import { getDefinitionName } from 'coral-framework/utils'; import CommentLabels from './CommentLabels'; import CommentDetails from './CommentDetails'; +import { getSlotFragmentSpreads } from 'coral-framework/utils'; + +const slots = ['draftArea']; export default withFragments({ root: gql` @@ -38,6 +41,7 @@ export default withFragments({ status_history { type } + ${getSlotFragmentSpreads(slots, 'comment')} ...${getDefinitionName(CommentLabels.fragments.comment)} ...${getDefinitionName(CommentDetails.fragments.comment)} }