diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-05-24 09:16:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-24 09:16:27 -0400 |
commit | 14684ae785d7a3cbad2aa49a453bf6b93b1fbc18 (patch) | |
tree | eea7dfb1722bef56db59ce52906642dc4caa5765 /webapp/components | |
parent | 94fb9f62796f8c55745962dd7253b40714f8cac7 (diff) | |
download | chat-14684ae785d7a3cbad2aa49a453bf6b93b1fbc18.tar.gz chat-14684ae785d7a3cbad2aa49a453bf6b93b1fbc18.tar.bz2 chat-14684ae785d7a3cbad2aa49a453bf6b93b1fbc18.zip |
Fix JS error when switching teams (#6484)
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/post_view/components/post_list.jsx | 2 |
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() { |