summaryrefslogtreecommitdiffstats
path: root/webapp/components/post_view
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-05-24 09:16:27 -0400
committerGitHub <noreply@github.com>2017-05-24 09:16:27 -0400
commit14684ae785d7a3cbad2aa49a453bf6b93b1fbc18 (patch)
treeeea7dfb1722bef56db59ce52906642dc4caa5765 /webapp/components/post_view
parent94fb9f62796f8c55745962dd7253b40714f8cac7 (diff)
downloadchat-14684ae785d7a3cbad2aa49a453bf6b93b1fbc18.tar.gz
chat-14684ae785d7a3cbad2aa49a453bf6b93b1fbc18.tar.bz2
chat-14684ae785d7a3cbad2aa49a453bf6b93b1fbc18.zip
Fix JS error when switching teams (#6484)
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r--webapp/components/post_view/components/post_list.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/post_view/components/post_list.jsx b/webapp/components/post_view/components/post_list.jsx
index f79cbec19..a0b88cd0f 100644
--- a/webapp/components/post_view/components/post_list.jsx
+++ b/webapp/components/post_view/components/post_list.jsx
@@ -551,7 +551,7 @@ export default class PostList extends React.Component {
window.removeEventListener('keydown', this.handleKeyDown);
this.scrollStopAction.cancel();
- PostStore.removePostDraftChangeListener(this.handlePostDraftChange);
+ PostStore.removePostDraftChangeListener(this.props.channelId, this.handlePostDraftChange);
}
componentDidUpdate() {