summaryrefslogtreecommitdiffstats
path: root/ui/src/components/community.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-10-18 15:05:50 -0700
committerDessalines <tyhou13@gmx.com>2019-10-18 15:05:50 -0700
commit3d7831f86d12d7b060c28d5619206307ad285f2e (patch)
treeb3475ce9c8bb1bc6f31c715657e30187814bba63 /ui/src/components/community.tsx
parent05d8e2957982579c33f143f180317b1e61e076d8 (diff)
Fixing issue with community.tsx.
Diffstat (limited to 'ui/src/components/community.tsx')
-rw-r--r--ui/src/components/community.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx
index bcd232e3..580e9a49 100644
--- a/ui/src/components/community.tsx
+++ b/ui/src/components/community.tsx
@@ -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;