]> Untitled Git - lemmy.git/commitdiff
Fixing issue with community.tsx.
authorDessalines <tyhou13@gmx.com>
Fri, 18 Oct 2019 22:05:50 +0000 (15:05 -0700)
committerDessalines <tyhou13@gmx.com>
Fri, 18 Oct 2019 22:05:50 +0000 (15:05 -0700)
ui/src/components/community.tsx

index bcd232e32928ae844c32b6907ed944d5b45a7249..580e9a498da230708d83c145d7a37b70db0dbb86 100644 (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;