From 1f3a16b159a8e83ac4d68e51c59a196fba427f24 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 d3cf275a..7e60b2b0 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, -- 2.44.1