From db7c4fe160b4e8021aecd12a0cf83e76f7b9ea23 Mon Sep 17 00:00:00 2001 From: 777genius Date: Tue, 14 Apr 2026 18:40:17 +0300 Subject: [PATCH] fix: restore team project highlight matching --- src/renderer/components/team/TeamListView.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/renderer/components/team/TeamListView.tsx b/src/renderer/components/team/TeamListView.tsx index 94bddaa1..678dd3c5 100644 --- a/src/renderer/components/team/TeamListView.tsx +++ b/src/renderer/components/team/TeamListView.tsx @@ -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 (