Skip to content

Commit

Permalink
set content to empty string after creation of new Discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
tima101 committed Sep 25, 2018
1 parent 91c0f75 commit 7444b2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/discussions/CreateDiscussionForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class CreateDiscussionForm extends React.Component<Props, State> {

await discussion.addPost(content);

this.setState({ name: '', memberIds: [] });
this.setState({ name: '', memberIds: [], content: '' });
notify('You successfully added new Discussion.');

Router.push(
Expand Down

0 comments on commit 7444b2a

Please sign in to comment.