mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 01:18:42 +00:00
Fix bug sort availableTeams context (#4948)
This commit is contained in:
parent
d6e900db4b
commit
727ba8b0db
1 changed files with 3 additions and 3 deletions
|
|
@ -155,10 +155,10 @@ const reducer = (state: InitialStateType, action: IAction) => {
|
|||
|
||||
return {
|
||||
...state,
|
||||
availableTeams: availableTeams.sort(
|
||||
(a: ITeamSummary, b: ITeamSummary) =>
|
||||
availableTeams:
|
||||
availableTeams?.sort((a: ITeamSummary, b: ITeamSummary) =>
|
||||
sort.caseInsensitiveAsc(a.name, b.name)
|
||||
),
|
||||
) || [],
|
||||
};
|
||||
}
|
||||
case ACTIONS.SET_CURRENT_USER: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue