From ea3adad87812f535c57b8212f4de65a3e708bb15 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 15 Dec 2019 11:29:50 -0800 Subject: [PATCH] Fixing suggested title filling. --- ui/src/components/post-form.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ui/src/components/post-form.tsx b/ui/src/components/post-form.tsx index 9bfa7063..cd5a8112 100644 --- a/ui/src/components/post-form.tsx +++ b/ui/src/components/post-form.tsx @@ -80,7 +80,7 @@ export class PostForm extends Component { this.state.postForm = { body: this.props.post.body, // NOTE: debouncing breaks both these for some reason, unless you use defaultValue - name: this.props.post.name, + name: undefined, community_id: this.props.post.community_id, edit_id: this.props.post.id, creator_id: this.props.post.creator_id, @@ -209,7 +209,11 @@ export class PostForm extends Component {