componentDidMount() {
document.title = "Communities - Lemmy";
- let table = document.querySelector('#community_table');
- Sortable.initTable(table);
}
// Necessary for back button for some reason
this.state.loading = false;
window.scrollTo(0,0);
this.setState(this.state);
+ let table = document.querySelector('#community_table');
+ Sortable.initTable(table);
} else if (op == UserOperation.FollowCommunity) {
let res: CommunityResponse = msg;
let found = this.state.communities.find(c => c.id == res.community.id);