summaryrefslogtreecommitdiffstats
path: root/webapp/components/common/comment_icon.jsx
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-06-05 23:09:43 +0800
committerHarrison Healey <harrisonmhealey@gmail.com>2017-06-05 11:09:43 -0400
commitb0f32e3c1928d1a125b9f7bdfd3dcbf2fede65ab (patch)
treec1eabc190d2fbb8a45981662a5effae71fdffaaa /webapp/components/common/comment_icon.jsx
parentb53ca57bad4f62422f9cf4b62d54c6f508ba13cb (diff)
downloadchat-b0f32e3c1928d1a125b9f7bdfd3dcbf2fede65ab.tar.gz
chat-b0f32e3c1928d1a125b9f7bdfd3dcbf2fede65ab.tar.bz2
chat-b0f32e3c1928d1a125b9f7bdfd3dcbf2fede65ab.zip
fix JS error and incorrect comment thread for SHIFT+UP (#6574)
Diffstat (limited to 'webapp/components/common/comment_icon.jsx')
-rw-r--r--webapp/components/common/comment_icon.jsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/webapp/components/common/comment_icon.jsx b/webapp/components/common/comment_icon.jsx
index 63218971f..4505d51bc 100644
--- a/webapp/components/common/comment_icon.jsx
+++ b/webapp/components/common/comment_icon.jsx
@@ -21,7 +21,7 @@ export default function CommentIcon(props) {
iconStyle = iconStyle + ' ' + props.searchStyle;
}
- let commentIconId = props.idPrefix;
+ let commentIconId = props.channelId + props.idPrefix;
if (props.idCount > -1) {
commentIconId += props.idCount;
}
@@ -47,11 +47,13 @@ CommentIcon.propTypes = {
idCount: PropTypes.number,
handleCommentClick: PropTypes.func.isRequired,
searchStyle: PropTypes.string,
- commentCount: PropTypes.number
+ commentCount: PropTypes.number,
+ channelId: PropTypes.string
};
CommentIcon.defaultProps = {
idCount: -1,
searchStyle: '',
- commentCount: 0
+ commentCount: 0,
+ channelId: ''
}; \ No newline at end of file