|
|
@ -147,7 +147,7 @@ export class Community extends Component<any, State> {
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
</h5>
|
|
|
|
</h5>
|
|
|
|
{this.selects()}
|
|
|
|
{this.selects()}
|
|
|
|
{this.state.posts && <PostListings posts={this.state.posts} />}
|
|
|
|
<PostListings posts={this.state.posts} />
|
|
|
|
{this.paginator()}
|
|
|
|
{this.paginator()}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 col-md-4">
|
|
|
|
<div class="col-12 col-md-4">
|
|
|
@ -280,11 +280,6 @@ export class Community extends Component<any, State> {
|
|
|
|
this.setState(this.state);
|
|
|
|
this.setState(this.state);
|
|
|
|
} else if (op == UserOperation.GetPosts) {
|
|
|
|
} else if (op == UserOperation.GetPosts) {
|
|
|
|
let res: GetPostsResponse = msg;
|
|
|
|
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.posts = res.posts;
|
|
|
|
this.state.loading = false;
|
|
|
|
this.state.loading = false;
|
|
|
|
this.setState(this.state);
|
|
|
|
this.setState(this.state);
|
|
|
|