From: Dessalines Date: Sun, 2 Jun 2019 16:41:57 +0000 (-0700) Subject: Fixing communities sorting X-Git-Url: http://these/git/readmes/static/%7B%60/css/themes/%7Biframely.url%7D?a=commitdiff_plain;h=107765619aa67171bfe46daa533b90867250a47e;p=lemmy.git Fixing communities sorting - Fixes #159 --- diff --git a/ui/src/components/communities.tsx b/ui/src/components/communities.tsx index 96864e9a..4cad7669 100644 --- a/ui/src/components/communities.tsx +++ b/ui/src/components/communities.tsx @@ -47,8 +47,6 @@ export class Communities extends Component { componentDidMount() { document.title = "Communities - Lemmy"; - let table = document.querySelector('#community_table'); - Sortable.initTable(table); } // Necessary for back button for some reason @@ -176,6 +174,8 @@ export class Communities extends Component { 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);