diff --git a/src/app/components/pages/CommunitiesIndex.jsx b/src/app/components/pages/CommunitiesIndex.jsx index 302bec947e..014f043b00 100644 --- a/src/app/components/pages/CommunitiesIndex.jsx +++ b/src/app/components/pages/CommunitiesIndex.jsx @@ -136,36 +136,40 @@ export default class CommunitiesIndex extends React.Component { {/* {Home} >{' '} */} {tt('g.community_list_header')} -
- { - this.setState({ - searchQuery: q, - }); - performSearch( - username, - q, - this.state.searchOrder - ); - }} - redirect={false} - /> +
+
+ { + this.setState({ + searchQuery: q, + }); + performSearch( + username, + q, + this.state.searchOrder + ); + }} + redirect={false} + /> +
+
+ { + this.setState({ + searchOrder: opt.value, + }); + performSearch( + username, + this.state.searchQuery, + opt.value + ); + }} + /> +
- { - this.setState({ - searchOrder: opt.value, - }); - performSearch( - username, - this.state.searchQuery, - opt.value - ); - }} - />
{ordered.map(comm => row(comm.toJS()))}