fix: restore team project highlight matching

This commit is contained in:
777genius 2026-04-14 18:40:17 +03:00
parent 58c21f3d24
commit db7c4fe160

View file

@ -846,13 +846,9 @@ export const TeamListView = (): React.JSX.Element => {
const teamColorSet = team.color const teamColorSet = team.color
? getTeamColorSet(team.color) ? getTeamColorSet(team.color)
: nameColorSet(team.displayName); : nameColorSet(team.displayName);
const matchesCurrentProject = const matchesCurrentProject = currentProjectPath
!!currentProjectPath && ? teamMatchesProjectSelection(team, currentProjectPath)
((team.projectPath : false;
? normalizePath(team.projectPath) === currentProjectPath
: false) ||
(team.projectPathHistory?.some((p) => normalizePath(p) === currentProjectPath) ??
false));
return ( return (
<div <div
key={team.teamName} key={team.teamName}