forked from nutomic/lemmy
Post editing fix.
This commit is contained in:
parent
18d4b3d2aa
commit
dc1fc1e04c
1 changed files with 1 additions and 1 deletions
2
ui/src/components/post-form.tsx
vendored
2
ui/src/components/post-form.tsx
vendored
|
@ -80,7 +80,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
||||||
this.state.postForm = {
|
this.state.postForm = {
|
||||||
body: this.props.post.body,
|
body: this.props.post.body,
|
||||||
// NOTE: debouncing breaks both these for some reason, unless you use defaultValue
|
// 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,
|
community_id: this.props.post.community_id,
|
||||||
edit_id: this.props.post.id,
|
edit_id: this.props.post.id,
|
||||||
creator_id: this.props.post.creator_id,
|
creator_id: this.props.post.creator_id,
|
||||||
|
|
Loading…
Reference in a new issue