Skip to content

Commit ba2dc94

Browse files
Copilotstnguyen90
andcommitted
Add clarifying comment for team ID check
Co-authored-by: stnguyen90 <1477010+stnguyen90@users.noreply.github.com>
1 parent c35a9d6 commit ba2dc94

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/lib/components/breadcrumbs.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@
260260
$: shouldReloadProjects = isLoadingProjects
261261
? false
262262
: currentProject && loadedProjects.projects.length
263-
? loadedProjects.projects[0].teamId != currentProject.teamId ||
263+
? // All projects in cache belong to same org, so check first project's teamId
264+
loadedProjects.projects[0].teamId != currentProject.teamId ||
264265
!loadedProjects.projects.some((p) => p.$id === currentProject.$id)
265266
: !loadedProjects.projects.length;
266267

0 commit comments

Comments
 (0)