Post editing fix.

pull/722/head
Dessalines 2019-12-28 21:10:07 -05:00
parent ecf792af3b
commit 1f3a16b159
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
this.state.postForm = {
body: this.props.post.body,
// NOTE: debouncing breaks both these for some reason, unless you use defaultValue
name: undefined,
name: this.props.post.name,
community_id: this.props.post.community_id,
edit_id: this.props.post.id,
creator_id: this.props.post.creator_id,