diff options
author | George Goldberg <george@gberg.me> | 2016-12-15 02:10:07 +0000 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-12-14 18:10:07 -0800 |
commit | 0bbc599b687473b9afacbe2e1c769cf1a41e9681 (patch) | |
tree | 8dbbdda3c226c4043499115a82fcf8fec5e10be8 /webapp/components | |
parent | e73e458b35960be77cad3d062a1063506a88599e (diff) | |
download | chat-0bbc599b687473b9afacbe2e1c769cf1a41e9681.tar.gz chat-0bbc599b687473b9afacbe2e1c769cf1a41e9681.tar.bz2 chat-0bbc599b687473b9afacbe2e1c769cf1a41e9681.zip |
Fix team chooser sort when there are no teams. (#4796)
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/select_team/select_team.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/select_team/select_team.jsx b/webapp/components/select_team/select_team.jsx index 133e9d581..eef3b7931 100644 --- a/webapp/components/select_team/select_team.jsx +++ b/webapp/components/select_team/select_team.jsx @@ -84,6 +84,8 @@ export default class SelectTeam extends React.Component { ); } + teamContents = teamContents.sort(this.teamContentsCompare); + var openTeamContents = []; for (const id in this.state.teamListings) { @@ -137,7 +139,7 @@ export default class SelectTeam extends React.Component { /> </h4> <div className='signup-team-all'> - {teamContents.sort(this.teamContentsCompare)} + {teamContents} </div> </div> ); |