From 75bcf291544a96e5fd926a67078777a5d91bb779 Mon Sep 17 00:00:00 2001 From: David Jay Date: Tue, 24 Jan 2017 12:37:50 -0500 Subject: [PATCH] Replies to replies are children of the root comment. --- client/coral-embed-stream/src/Comment.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/coral-embed-stream/src/Comment.js b/client/coral-embed-stream/src/Comment.js index 554ebdf23..2dc6a2d83 100644 --- a/client/coral-embed-stream/src/Comment.js +++ b/client/coral-embed-stream/src/Comment.js @@ -62,6 +62,7 @@ class Comment extends React.Component { render () { const { comment, + parentId, currentUser, asset, depth, @@ -101,7 +102,7 @@ class Comment extends React.Component { console.log('reply button click'); this.setState({replyBoxVisible: !this.state.replyBoxVisible}); }} - parentCommentId={comment.id} + parentCommentId={parentId || comment.id} currentUserId={currentUser.id} banned={false} />