mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-09 04:02:40 -05:00
Tournament: Sort teams alphabetically on admin page
This commit is contained in:
parent
62ee3681b6
commit
87d4982202
|
|
@ -294,11 +294,14 @@ function AdminActions() {
|
|||
value={selectedTeamId}
|
||||
onChange={(e) => setSelectedTeamId(Number(e.target.value))}
|
||||
>
|
||||
{data.teams.map((team) => (
|
||||
<option key={team.id} value={team.id}>
|
||||
{team.name}
|
||||
</option>
|
||||
))}
|
||||
{data.teams
|
||||
.slice()
|
||||
.sort((a, b) => a.name.localeCompare(b.name))
|
||||
.map((team) => (
|
||||
<option key={team.id} value={team.id}>
|
||||
{team.name}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</div>
|
||||
{selectedTeam && selectedAction.inputs.includes("ROSTER_MEMBER") ? (
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user