tods-competition-factory 1.6.12 → 1.6.15

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.
@@ -3867,7 +3867,7 @@ function validMatchUp(matchUp) {
3867
3867
  const { matchUpId, drawPositions } = matchUp;
3868
3868
  const validMatchUpId = typeof matchUpId === "string";
3869
3869
  const validDrawPositions = !drawPositions || Array.isArray(drawPositions) && drawPositions.length <= 2 && drawPositions.every(
3870
- (dp) => isConvertableInteger(dp) || dp === void 0
3870
+ (dp) => isConvertableInteger(dp) || dp === void 0 || dp === null
3871
3871
  );
3872
3872
  return validMatchUpId && validDrawPositions;
3873
3873
  }
@@ -6280,9 +6280,10 @@ function getSourceDrawPositionRanges({
6280
6280
  structureId: sourceStructureId,
6281
6281
  matchUpsMap
6282
6282
  });
6283
- const { roundProfile } = getRoundMatchUps({
6283
+ const roundMatchUpsResult = getRoundMatchUps({
6284
6284
  matchUps: structureMatchUps2
6285
6285
  });
6286
+ const roundProfile = roundMatchUpsResult.roundProfile;
6286
6287
  return { [sourceStructureId]: roundProfile };
6287
6288
  })
6288
6289
  );
@@ -6847,7 +6848,7 @@ function getSide({
6847
6848
  sideNumber
6848
6849
  }) {
6849
6850
  const assignment = positionAssignments.find(
6850
- (assignment2) => assignment2.drawPosition === drawPosition
6851
+ (assignment2) => assignment2.drawPosition && assignment2.drawPosition === drawPosition
6851
6852
  );
6852
6853
  const participantId = drawPositionCollectionAssignment ? drawPositionCollectionAssignment[drawPosition]?.participantId : assignment?.participantId;
6853
6854
  const sideValue = assignment ? getSideValue({