diff options
author | Dessalines <happydooby@gmail.com> | 2019-06-02 09:41:57 -0700 |
---|---|---|
committer | Dessalines <happydooby@gmail.com> | 2019-06-02 09:41:57 -0700 |
commit | 43c5211f71b2be7c6d55f1a960173c39011e8781 (patch) | |
tree | c049f229760b39fd08a1ffc9bf3db98e10a8d84f | |
parent | 6f4125dbfb212fa12ff85bce12523a2c3d08e67d (diff) |
Fixing communities sorting
- Fixes #159
-rw-r--r-- | ui/src/components/communities.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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<any, CommunitiesState> { 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<any, CommunitiesState> { 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); |