File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ import {
7676} from '../shared/file.utils' ;
7777import {
7878 isObsoleteParticipant ,
79+ matchesStatusFilter ,
7980 ParticipantSortOption ,
8081 ParticipantStatusFilter ,
8182 requiresAnonymousProfiles ,
@@ -601,12 +602,16 @@ export class ExperimentManager extends Service {
601602 } ) ;
602603
603604 // On initial load, default to "in progress" filter if there are
604- // many participants to avoid slow rendering.
605+ // many participants to avoid slow rendering, but only if some
606+ // participants are actually in progress (skip for finished experiments).
605607 if (
606608 this . isParticipantsLoading &&
607609 Object . keys ( this . participantMap ) . length >
608610 ExperimentManager . AUTO_FILTER_PARTICIPANT_THRESHOLD &&
609- this . participantStatusFilters . size === 0
611+ this . participantStatusFilters . size === 0 &&
612+ Object . values ( this . participantMap ) . some ( ( p ) =>
613+ matchesStatusFilter ( p , 'inProgress' ) ,
614+ )
610615 ) {
611616 this . participantStatusFilters = new Set < ParticipantStatusFilter > ( [
612617 'inProgress' ,
You can’t perform that action at this time.
0 commit comments