Open platform to collect and prioritize feedback
Tidying up the querystrting stuff.
Matt Robertse19088ed88b4
diff --git a/public/pages/Home/components/PostsContainer.tsx b/public/pages/Home/components/PostsContainer.tsxindex 5e42a30e6..0bb49f13f 100644--- a/public/pages/Home/components/PostsContainer.tsx+++ b/public/pages/Home/components/PostsContainer.tsx@@ -39,10 +39,7 @@ export class PostsContainer extends React.Component<PostsContainerProps, PostsCoconstructor(props: PostsContainerProps) {super(props)- let view = querystring.get("view")- if (!view) {- view = "trending"- }+ const view = querystring.get("view")this.state = {posts: this.props.posts,@@ -61,7 +58,7 @@ export class PostsContainer extends React.Component<PostsContainerProps, PostsCoquerystring.stringify({statuses: this.state.filterState.statuses,tags: this.state.filterState.tags,- myvotes: this.state.filterState.myVotes.toString(),+ myvotes: this.state.filterState.myVotes ? "true" : undefined,query,view: this.state.view,limit: this.state.limit,@@ -70,7 +67,7 @@ export class PostsContainer extends React.Component<PostsContainerProps, PostsCothis.searchPosts(query,- this.state.view,+ this.state.view || "trending",this.state.limit,this.state.filterState.tags,this.state.filterState.statuses,