diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-07 15:57:43 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-07 15:58:08 -0500 |
commit | 68b8285eaf4ab704bfe868645b124e2ce6643b3f (patch) | |
tree | c96ed3e99b2ea43590151c4a8cd2a69254b7dac4 /web/react/components/create_post.jsx | |
parent | b8b38c0c7269210451dc5fee81ef28ed4e8ae183 (diff) | |
download | chat-68b8285eaf4ab704bfe868645b124e2ce6643b3f.tar.gz chat-68b8285eaf4ab704bfe868645b124e2ce6643b3f.tar.bz2 chat-68b8285eaf4ab704bfe868645b124e2ce6643b3f.zip |
Fixed clearing post draft after a command is entered
Diffstat (limited to 'web/react/components/create_post.jsx')
-rw-r--r-- | web/react/components/create_post.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |