summaryrefslogtreecommitdiffstats
path: root/ui/src/components/communities.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-06-02 09:41:57 -0700
committerDessalines <tyhou13@gmx.com>2019-06-02 09:41:57 -0700
commit107765619aa67171bfe46daa533b90867250a47e (patch)
treefa5b9a23d6dfc9b93788952934726619933db9a6 /ui/src/components/communities.tsx
parent525c570568d502794a7d84fd8ea0e24ceebbcae4 (diff)
Fixing communities sorting
- Fixes #159
Diffstat (limited to 'ui/src/components/communities.tsx')
-rw-r--r--ui/src/components/communities.tsx4
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);