From dc1fc1e04ce9e03fdca6826acd2e22f80cff55f4 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 28 Dec 2019 21:10:07 -0500 Subject: [PATCH] Post editing fix. --- ui/src/components/post-form.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/post-form.tsx b/ui/src/components/post-form.tsx index d3cf275..7e60b2b 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: 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,