diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-06-15 11:22:53 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-06-15 11:22:53 -0700 |
commit | 6883f691ef3b33ceee6bc525830675245aaf508a (patch) | |
tree | 4693838432e0c544944b137ab246fbcc4583d848 /web/react/components/create_comment.jsx | |
parent | c94883e0dfc0c7cbcf86a78f9134d1e3283a07cd (diff) | |
parent | 08e02c3dad4d2fa765b11ae58313b3f3e375e447 (diff) | |
download | chat-6883f691ef3b33ceee6bc525830675245aaf508a.tar.gz chat-6883f691ef3b33ceee6bc525830675245aaf508a.tar.bz2 chat-6883f691ef3b33ceee6bc525830675245aaf508a.zip |
Merge pull request #1 from mattermost/master
to me
Diffstat (limited to 'web/react/components/create_comment.jsx')
-rw-r--r-- | web/react/components/create_comment.jsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/web/react/components/create_comment.jsx b/web/react/components/create_comment.jsx index 3534c7573..9bcbad079 100644 --- a/web/react/components/create_comment.jsx +++ b/web/react/components/create_comment.jsx @@ -55,12 +55,15 @@ module.exports = React.createClass({ }.bind(this), function(err) { - var state = {} + var state = {}; state.server_error = err.message; - this.setState(state); + if (err.message === "Invalid RootId parameter") { if ($('#post_deleted').length > 0) $('#post_deleted').modal('show'); } + else { + this.setState(state); + } }.bind(this) ); }, |