summaryrefslogtreecommitdiffstats
path: root/webapp
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
parent94fb9f62796f8c55745962dd7253b40714f8cac7 (diff)
downloadchat-14684ae785d7a3cbad2aa49a453bf6b93b1fbc18.tar.gz
chat-14684ae785d7a3cbad2aa49a453bf6b93b1fbc18.tar.bz2
chat-14684ae785d7a3cbad2aa49a453bf6b93b1fbc18.zip
Fix JS error when switching teams (#6484)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/post_view/components/post_list.jsx2
-rw-r--r--webapp/yarn.lock2
2 files changed, 2 insertions, 2 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() {
diff --git a/webapp/yarn.lock b/webapp/yarn.lock
index 1b5bdb59b..9f8d68877 100644
--- a/webapp/yarn.lock
+++ b/webapp/yarn.lock
@@ -4880,7 +4880,7 @@ math-expression-evaluator@^1.2.14:
mattermost-redux@mattermost/mattermost-redux#webapp-master:
version "0.0.1"
- resolved "https://codeload.github.com/mattermost/mattermost-redux/tar.gz/e7e9b9ef52b72547174bfae1d0c5b31dddbbbca7"
+ resolved "https://codeload.github.com/mattermost/mattermost-redux/tar.gz/6af89f1e58258a709601bf46ef7af2ab41d8d1f6"
dependencies:
deep-equal "1.0.1"
harmony-reflect "1.5.1"