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/main.tsx | |
parent | 96684ef2a09543e2378c985666ef4471a3b99608 (diff) |
Fixing new comments and posts voting issue. Fixes #422
Diffstat (limited to 'ui/src/components/main.tsx')
-rw-r--r-- | ui/src/components/main.tsx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ui/src/components/main.tsx b/ui/src/components/main.tsx index 95eeb1df..5fdf23bb 100644 --- a/ui/src/components/main.tsx +++ b/ui/src/components/main.tsx @@ -422,9 +422,7 @@ export class Main extends Component<any, MainState> { ) : ( <div> {this.selects()} - {this.state.posts && ( - <PostListings posts={this.state.posts} showCommunity /> - )} + <PostListings posts={this.state.posts} showCommunity /> {this.paginator()} </div> )} @@ -598,11 +596,6 @@ export class Main extends Component<any, MainState> { 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); |