Skip to content

Commit

Permalink
solve no experiments error after filtering (#1035)
Browse files Browse the repository at this point in the history
Co-authored-by: RidhamShah <[email protected]>
  • Loading branch information
RidhamShah and RidhamShah authored Oct 6, 2023
1 parent 92d4086 commit e22f85f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,11 @@ export class ExperimentAssignmentService {

filteredExperiments = alreadyAssignedExperiment.flat().concat(filteredExperiments);

// return if no experiment
if (filteredExperiments.length === 0) {
return [];
}

// assign remaining experiment
const experimentAssignment = await Promise.all(
filteredExperiments.map((experiment) => {
Expand Down

0 comments on commit e22f85f

Please sign in to comment.