diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2015-10-08 09:30:44 -0400 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2015-10-08 09:30:44 -0400 |
commit | 21bf9db56cf41e6f02e9f0e80cec997c94a0c726 (patch) | |
tree | f3871b2ffe331572bb1b4fa2d3af8b55254c6e17 /web/react/components/create_comment.jsx | |
parent | c189e2bb7681ba01edc9b8c5accd90b94c898d0a (diff) | |
parent | be8225b761a3009efd1097a0b4dd4d8f44830a33 (diff) | |
download | chat-21bf9db56cf41e6f02e9f0e80cec997c94a0c726.tar.gz chat-21bf9db56cf41e6f02e9f0e80cec997c94a0c726.tar.bz2 chat-21bf9db56cf41e6f02e9f0e80cec997c94a0c726.zip |
Merge pull request #948 from rgarmsen2295/plt-167
PLT-167 Fixes issue with trying to comment on a deleted post
Diffstat (limited to 'web/react/components/create_comment.jsx')
-rw-r--r-- | web/react/components/create_comment.jsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/create_comment.jsx b/web/react/components/create_comment.jsx index 9c233ea26..550f85d3d 100644 --- a/web/react/components/create_comment.jsx +++ b/web/react/components/create_comment.jsx @@ -106,10 +106,11 @@ export default class CreateComment extends React.Component { let state = {}; if (err.message === 'Invalid RootId parameter') { + PostStore.removePendingPost(post.channel_id, post.pending_post_id); + if ($('#post_deleted').length > 0) { $('#post_deleted').modal('show'); } - PostStore.removePendingPost(post.pending_post_id); } else { post.state = Constants.POST_FAILED; PostStore.updatePendingPost(post); |