summaryrefslogtreecommitdiffstats
path: root/web/react/components/delete_post_modal.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-02-23 14:34:06 -0500
committerHarrison Healey <harrisonmhealey@gmail.com>2016-02-23 14:34:06 -0500
commit0031c6fd1a4df621cbecfd2a2b3efe9a40cd49ce (patch)
tree2afcb0888267be4cf59df2d0e8f5085d6aacccb0 /web/react/components/delete_post_modal.jsx
parent11093ddb51a70622287aac20108be6c6aa2eb76d (diff)
parent1f049af2b7ea41a5e1e79a8263e10fa58f186c8d (diff)
downloadchat-0031c6fd1a4df621cbecfd2a2b3efe9a40cd49ce.tar.gz
chat-0031c6fd1a4df621cbecfd2a2b3efe9a40cd49ce.tar.bz2
chat-0031c6fd1a4df621cbecfd2a2b3efe9a40cd49ce.zip
Merge pull request #2229 from mattermost/plt-1770
PLT-1770 Refactor store listeners out of highly used components
Diffstat (limited to 'web/react/components/delete_post_modal.jsx')
-rw-r--r--web/react/components/delete_post_modal.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/delete_post_modal.jsx b/web/react/components/delete_post_modal.jsx
index 773d0b420..f8e3e406a 100644
--- a/web/react/components/delete_post_modal.jsx
+++ b/web/react/components/delete_post_modal.jsx
@@ -68,7 +68,7 @@ export default class DeletePostModal extends React.Component {
AppDispatcher.handleServerAction({
type: ActionTypes.RECEIVED_POST_SELECTED,
- results: null
+ postId: null
});
} else if (selectedPost.id === this.state.post.id && this.state.root_id) {
if (selectedPost.root_id && selectedPost.root_id.length > 0 && selectedList.posts[selectedPost.root_id]) {
@@ -77,7 +77,7 @@ export default class DeletePostModal extends React.Component {
AppDispatcher.handleServerAction({
type: ActionTypes.RECEIVED_POST_SELECTED,
- post_list: selectedList
+ postId: selectedPost.root_id
});
AppDispatcher.handleServerAction({