diff --git a/webapp/components/delete_post_modal.jsx b/webapp/components/delete_post_modal.jsx index 6563e3ee84..5f21ea3bc2 100644 --- a/webapp/components/delete_post_modal.jsx +++ b/webapp/components/delete_post_modal.jsx @@ -55,7 +55,6 @@ export default class DeletePostModal extends React.Component { this.state.post.id, () => { PostStore.deletePost(this.state.post); - AsyncClient.getPosts(this.state.post.channel_id); if (this.state.post.id === PostStore.getSelectedPostId()) { AppDispatcher.handleServerAction({ diff --git a/webapp/components/post_view/components/post_info.jsx b/webapp/components/post_view/components/post_info.jsx index e95afe3ed7..81e6a1fc22 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 { GlobalActions.showDeletePostModal(post, dataComments)} + onClick={(e) => { + e.preventDefault(); + GlobalActions.showDeletePostModal(post, dataComments); + }} > GlobalActions.showDeletePostModal(post, 0)} + onClick={(e) => { + e.preventDefault(); + GlobalActions.showDeletePostModal(post, 0); + }} >