tods-competition-factory 1.7.9 → 1.7.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13104,9 +13104,12 @@ function getSourceStructureIdsAndRelevantLinks({
13104
13104
  return { sourceStructureIds, relevantLinks };
13105
13105
  }
13106
13106
 
13107
- function getAssignedParticipantIds({ drawDefinition, stages }) {
13107
+ function getAssignedParticipantIds({
13108
+ drawDefinition,
13109
+ stages
13110
+ }) {
13108
13111
  const stageStructures = (drawDefinition?.structures || []).filter(
13109
- (structure) => !stages?.length || stages.includes(structure.stage)
13112
+ (structure) => !stages?.length || structure.stage && stages.includes(structure.stage)
13110
13113
  );
13111
13114
  return stageStructures.map((structure) => {
13112
13115
  const { positionAssignments } = getPositionAssignments({