Skip to content

Commit

Permalink
[frontend] update teamsIds state
Browse files Browse the repository at this point in the history
  • Loading branch information
savacano28 committed Sep 25, 2024
1 parent 52a03e1 commit c0df4bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const AddTeams: React.FC<Props> = ({ addedTeamIds, onAddTeams }) => {
<Chip
key={teamId}
onDelete={() => {
setTeamIds(teamIds.filter((id) => id !== teamId));
setTeamIds((prevIds) => prevIds.filter((id) => id !== teamId));
}}
label={truncate(team.team_name, 22)}
avatar={<Avatar src={teamGravatar} sx={{ height: '32px', width: '32px' }} />}
Expand Down

0 comments on commit c0df4bf

Please sign in to comment.