Fixing issue with community.tsx.

pull/313/head v0.3.0.4
Dessalines 2019-10-18 15:05:50 -07:00
parent 27ea8af992
commit ce10a3454f
1 changed files with 1 additions and 2 deletions

View File

@ -80,7 +80,6 @@ export class Community extends Component<any, State> {
WebSocketService.Instance.getCommunityByName(this.state.communityName);
}
this.keepFetchingPosts();
}
componentWillUnmount() {
@ -218,7 +217,7 @@ export class Community extends Component<any, State> {
this.state.admins = res.admins;
document.title = `/c/${this.state.community.name} - ${WebSocketService.Instance.site.name}`;
this.setState(this.state);
this.fetchPosts();
this.keepFetchingPosts();
} else if (op == UserOperation.EditCommunity) {
let res: CommunityResponse = msg;
this.state.community = res.community;