mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-10 10:08:58 +00:00
Fixing issue with community.tsx.
This commit is contained in:
parent
05d8e29579
commit
3d7831f86d
3
ui/src/components/community.tsx
vendored
3
ui/src/components/community.tsx
vendored
|
@ -80,7 +80,6 @@ export class Community extends Component<any, State> {
|
||||||
WebSocketService.Instance.getCommunityByName(this.state.communityName);
|
WebSocketService.Instance.getCommunityByName(this.state.communityName);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.keepFetchingPosts();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
@ -218,7 +217,7 @@ export class Community extends Component<any, State> {
|
||||||
this.state.admins = res.admins;
|
this.state.admins = res.admins;
|
||||||
document.title = `/c/${this.state.community.name} - ${WebSocketService.Instance.site.name}`;
|
document.title = `/c/${this.state.community.name} - ${WebSocketService.Instance.site.name}`;
|
||||||
this.setState(this.state);
|
this.setState(this.state);
|
||||||
this.fetchPosts();
|
this.keepFetchingPosts();
|
||||||
} else if (op == UserOperation.EditCommunity) {
|
} else if (op == UserOperation.EditCommunity) {
|
||||||
let res: CommunityResponse = msg;
|
let res: CommunityResponse = msg;
|
||||||
this.state.community = res.community;
|
this.state.community = res.community;
|
||||||
|
|
Loading…
Reference in a new issue