]> Untitled Git - lemmy.git/commitdiff
Post editing fix.
authorDessalines <tyhou13@gmx.com>
Sun, 29 Dec 2019 02:10:07 +0000 (21:10 -0500)
committerDessalines <tyhou13@gmx.com>
Sun, 29 Dec 2019 02:10:07 +0000 (21:10 -0500)
ui/src/components/post-form.tsx

index d3cf275a855b9f55b57538420bcce2d7d672ece0..7e60b2b0f9ac3ad763fb8344ea46dd379d8e9e4e 100644 (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,