Add clarifying comment for team ID check

Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-21 18:17:52 +00:00
co-authored by stnguyen90
parent c35a9d6c0c
commit ba2dc94d28
+2 -1
View File
@@ -260,7 +260,8 @@
$: shouldReloadProjects = isLoadingProjects
? false
: currentProject && loadedProjects.projects.length
? loadedProjects.projects[0].teamId != currentProject.teamId ||
? // All projects in cache belong to same org, so check first project's teamId
loadedProjects.projects[0].teamId != currentProject.teamId ||
!loadedProjects.projects.some((p) => p.$id === currentProject.$id)
: !loadedProjects.projects.length;