diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-08-30 18:54:48 -0400 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-08-30 19:54:48 -0300 |
commit | 3e14e8b5abee937b02b99f19730797cfa4390598 (patch) | |
tree | 81d1e174b2aee3cfe9bb2947af8c6e5ab339b261 /webapp/components/post_view | |
parent | 391926e9a70cb7502bfbab7d8b6dbcb221b1a18e (diff) | |
download | chat-3e14e8b5abee937b02b99f19730797cfa4390598.tar.gz chat-3e14e8b5abee937b02b99f19730797cfa4390598.tar.bz2 chat-3e14e8b5abee937b02b99f19730797cfa4390598.zip |
Remove getPosts request after deleting a post (#3905)
Diffstat (limited to 'webapp/components/post_view')
-rw-r--r-- | webapp/components/post_view/components/post_info.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/components/post_view/components/post_info.jsx b/webapp/components/post_view/components/post_info.jsx index e95afe3ed..81e6a1fc2 100644 --- a/webapp/components/post_view/components/post_info.jsx +++ b/webapp/components/post_view/components/post_info.jsx @@ -147,7 +147,10 @@ export default class PostInfo extends React.Component { <a href='#' role='menuitem' - onClick={() => GlobalActions.showDeletePostModal(post, dataComments)} + onClick={(e) => { + e.preventDefault(); + GlobalActions.showDeletePostModal(post, dataComments); + }} > <FormattedMessage id='post_info.del' |