mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 15:51:14 +00:00
parent
6cca9a9874
commit
87c30705ef
1 changed files with 2 additions and 1 deletions
|
@ -161,7 +161,6 @@ export class Post extends Component<any, PostState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
fetchPost() {
|
fetchPost() {
|
||||||
this.setState({ commentsRes: undefined, postRes: undefined });
|
|
||||||
let auth = myAuth(false);
|
let auth = myAuth(false);
|
||||||
let postForm: GetPost = {
|
let postForm: GetPost = {
|
||||||
id: this.state.postId,
|
id: this.state.postId,
|
||||||
|
@ -498,6 +497,8 @@ export class Post extends Component<any, PostState> {
|
||||||
i.setState({
|
i.setState({
|
||||||
commentSort: CommentSortType[event.target.value],
|
commentSort: CommentSortType[event.target.value],
|
||||||
commentViewType: CommentViewType.Tree,
|
commentViewType: CommentViewType.Tree,
|
||||||
|
commentsRes: undefined,
|
||||||
|
postRes: undefined,
|
||||||
});
|
});
|
||||||
i.fetchPost();
|
i.fetchPost();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue