mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-08 08:34:20 +02:00
Fix showing inactive teams in /equipes
This commit is contained in:
parent
68919fc55b
commit
b6533795c4
@ -8,9 +8,11 @@ const TeamList: React.FC = (): JSX.Element | null => {
|
||||
const teams = useSelector(selectSortedTeams)
|
||||
if (!teams || teams.length === 0) return null
|
||||
|
||||
const shownTeams = teams.filter((team) => team?.status !== "inactive")
|
||||
|
||||
return (
|
||||
<ul className={styles.teamList}>
|
||||
{teams.map((team: any) => (
|
||||
{shownTeams.map((team: any) => (
|
||||
<TeamItem team={team} key={team.id} />
|
||||
))}
|
||||
</ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user