From 9374aefa56a707cafce8740cd45a0d254ea2184f Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 25 Apr 2019 20:14:52 -0700 Subject: [PATCH] Temp --- server/src/websocket_server/server.rs | 2 +- ui/src/components/community-form.tsx | 5 ++++- ui/src/components/login.tsx | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/server/src/websocket_server/server.rs b/server/src/websocket_server/server.rs index dbd1be8d5..c99b32a63 100644 --- a/server/src/websocket_server/server.rs +++ b/server/src/websocket_server/server.rs @@ -969,7 +969,7 @@ impl Perform for ListCommunities { let sort = SortType::from_str(&self.sort)?; - let communities: Vec = CommunityView::list(&conn, user_id, sort, self.page, self.limit)?; + let communities: Vec = CommunityView::list(&conn, user_id, sort, self.page, Some(50))?; // Return the jwt Ok( diff --git a/ui/src/components/community-form.tsx b/ui/src/components/community-form.tsx index 66071a3fa..5effa73ae 100644 --- a/ui/src/components/community-form.tsx +++ b/ui/src/components/community-form.tsx @@ -120,7 +120,10 @@ export class CommunityForm extends Component { i.state.registerLoading = true; i.setState(i.state); event.preventDefault(); - WebSocketService.Instance.register(i.state.registerForm); + setTimeout(function(){ + WebSocketService.Instance.register(i.state.registerForm); + }, 10000); } handleRegisterUsernameChange(i: Login, event: any) {