summaryrefslogtreecommitdiffstats
path: root/web/react/components/delete_post_modal.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components/delete_post_modal.jsx')
-rw-r--r--web/react/components/delete_post_modal.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/delete_post_modal.jsx b/web/react/components/delete_post_modal.jsx
index 1b6a7e162..55d6f509c 100644
--- a/web/react/components/delete_post_modal.jsx
+++ b/web/react/components/delete_post_modal.jsx
@@ -44,7 +44,8 @@ module.exports = React.createClass({
}
}
}
- AsyncClient.getPosts(true, this.state.channel_id);
+ PostStore.removePost(this.state.post_id, this.state.channel_id);
+ AsyncClient.getPosts(this.state.channel_id);
}.bind(this),
function(err) {
AsyncClient.dispatchError(err, "deletePost");