diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-06-05 23:09:43 +0800 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-06-05 11:09:43 -0400 |
commit | b0f32e3c1928d1a125b9f7bdfd3dcbf2fede65ab (patch) | |
tree | c1eabc190d2fbb8a45981662a5effae71fdffaaa /webapp/components/common/comment_icon.jsx | |
parent | b53ca57bad4f62422f9cf4b62d54c6f508ba13cb (diff) | |
download | chat-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.jsx | 8 |
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 |