summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-02-04 07:54:57 -0800
committerCorey Hulen <corey@hulen.com>2016-02-04 07:54:57 -0800
commit34547186bab624d48866ccd5d3f20b6de9683011 (patch)
tree2d284a86ed30c63798d7738ec8ea97d1862e05a1 /web
parentb8f49ed9d4a700853ec9a441b642a9b2fc8022ab (diff)
parente4492152c7536a7bd646f75e2748d21dd53577fa (diff)
downloadchat-34547186bab624d48866ccd5d3f20b6de9683011.tar.gz
chat-34547186bab624d48866ccd5d3f20b6de9683011.tar.bz2
chat-34547186bab624d48866ccd5d3f20b6de9683011.zip
Merge pull request #2068 from hmhealey/plt1767
PLT-1767 Fixed editing your last comment in the RHS
Diffstat (limited to 'web')
-rw-r--r--web/react/components/create_comment.jsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/web/react/components/create_comment.jsx b/web/react/components/create_comment.jsx
index 1b552838a..8c49315e7 100644
--- a/web/react/components/create_comment.jsx
+++ b/web/react/components/create_comment.jsx
@@ -202,8 +202,7 @@ class CreateComment extends React.Component {
if (e.keyCode === KeyCodes.UP && this.state.messageText === '') {
e.preventDefault();
- const channelId = ChannelStore.getCurrentId();
- const lastPost = PostStore.getCurrentUsersLatestPost(channelId, this.props.rootId);
+ const lastPost = PostStore.getCurrentUsersLatestPost(this.props.channelId, this.props.rootId);
if (!lastPost) {
return;
}
@@ -402,4 +401,4 @@ CreateComment.propTypes = {
rootId: React.PropTypes.string.isRequired
};
-export default injectIntl(CreateComment); \ No newline at end of file
+export default injectIntl(CreateComment);