Skip to content

Commit

Permalink
solve no experiments error after filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
RidhamShah committed Oct 6, 2023
1 parent 92d4086 commit 56ff444
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 56ff444

Please sign in to comment.