Browse Source

fix(teamStats): Fix undefined bug (#53748)

this pr fixes JAVASCRIPT-26Z7
Richard Roggenkemper 1 year ago
parent
commit
f619394483
1 changed files with 1 additions and 1 deletions
  1. 1 1
      static/app/views/organizationStats/teamInsights/controls.tsx

+ 1 - 1
static/app/views/organizationStats/teamInsights/controls.tsx

@@ -50,7 +50,7 @@ function TeamStatsControls({
   showEnvironment,
 }: Props) {
   const {projects} = useProjects({
-    slugs: currentTeam?.projects.map(project => project.slug) ?? [],
+    slugs: currentTeam?.projects?.map(project => project.slug) ?? [],
   });
   const organization = useOrganization();
   const isSuperuser = isActiveSuperuser();