From 68b8285eaf4ab704bfe868645b124e2ce6643b3f Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Mon, 7 Mar 2016 15:57:43 -0500 Subject: Fixed clearing post draft after a command is entered --- web/react/components/create_post.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') diff --git a/web/react/components/create_post.jsx b/web/react/components/create_post.jsx index 9d7a19554..cbd23d804 100644 --- a/web/react/components/create_post.jsx +++ b/web/react/components/create_post.jsx @@ -130,7 +130,7 @@ class CreatePost extends React.Component { post.message, false, (data) => { - PostStore.storeDraft(data.channel_id, null); + PostStore.storeDraft(this.state.channelId, null); this.setState({messageText: '', submitting: false, postError: null, previews: [], serverError: null}); if (data.goto_location && data.goto_location.length > 0) { -- cgit v1.2.3-1-g7c22