diff options
author | Dessalines <tyhou13@gmx.com> | 2020-01-19 19:48:34 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-01-19 19:48:34 -0500 |
commit | f020e89a8c8b5a8dafc41cf40dc9fb6f881778fb (patch) | |
tree | 8d09a52b28a5306bc7a75b834868a972e6b310e8 /ui/src/components/community.tsx | |
parent | 96684ef2a09543e2378c985666ef4471a3b99608 (diff) |
Fixing new comments and posts voting issue. Fixes #422
Diffstat (limited to 'ui/src/components/community.tsx')
-rw-r--r-- | ui/src/components/community.tsx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx index 03766bdc..873b5a8a 100644 --- a/ui/src/components/community.tsx +++ b/ui/src/components/community.tsx @@ -147,7 +147,7 @@ export class Community extends Component<any, State> { )} </h5> {this.selects()} - {this.state.posts && <PostListings posts={this.state.posts} />} + <PostListings posts={this.state.posts} /> {this.paginator()} </div> <div class="col-12 col-md-4"> @@ -280,11 +280,6 @@ export class Community extends Component<any, State> { this.setState(this.state); } else if (op == UserOperation.GetPosts) { let res: GetPostsResponse = msg; - - // This is needed to refresh the view - this.state.posts = undefined; - this.setState(this.state); - this.state.posts = res.posts; this.state.loading = false; this.setState(this.state); |