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
? getTeamColorSet(team.color)
: nameColorSet(team.displayName);
const matchesCurrentProject =
!!currentProjectPath &&
((team.projectPath
? normalizePath(team.projectPath) === currentProjectPath
: false) ||
(team.projectPathHistory?.some((p) => normalizePath(p) === currentProjectPath) ??
false));
const matchesCurrentProject = currentProjectPath
? teamMatchesProjectSelection(team, currentProjectPath)
: false;
return (
<div
key={team.teamName}