Browse Source

fix(stats): Hide profiles when profile durations is visible (#72373)

Scott Cooper 9 months ago
parent
commit
aad2e451ff
1 changed files with 3 additions and 0 deletions
  1. 3 0
      static/app/views/organizationStats/index.tsx

+ 3 - 0
static/app/views/organizationStats/index.tsx

@@ -252,6 +252,9 @@ export class OrganizationStats extends Component<OrganizationStatsProps> {
       if (DATA_CATEGORY_INFO.profileDuration.plural === opt.value) {
         return organization.features.includes('continuous-profiling-stats');
       }
+      if (DATA_CATEGORY_INFO.profile.plural === opt.value) {
+        return !organization.features.includes('continuous-profiling-stats');
+      }
       return true;
     });