tods-competition-factory 1.6.12 → 1.6.13

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.
@@ -1943,7 +1943,7 @@ function validMatchUp(matchUp) {
1943
1943
  const { matchUpId, drawPositions } = matchUp;
1944
1944
  const validMatchUpId = typeof matchUpId === "string";
1945
1945
  const validDrawPositions = !drawPositions || Array.isArray(drawPositions) && drawPositions.length <= 2 && drawPositions.every(
1946
- (dp) => isConvertableInteger(dp) || dp === void 0
1946
+ (dp) => isConvertableInteger(dp) || dp === void 0 || dp === null
1947
1947
  );
1948
1948
  return validMatchUpId && validDrawPositions;
1949
1949
  }
@@ -5003,9 +5003,10 @@ function getSourceDrawPositionRanges({
5003
5003
  structureId: sourceStructureId,
5004
5004
  matchUpsMap
5005
5005
  });
5006
- const { roundProfile } = getRoundMatchUps({
5006
+ const roundMatchUpsResult = getRoundMatchUps({
5007
5007
  matchUps: structureMatchUps2
5008
5008
  });
5009
+ const roundProfile = roundMatchUpsResult.roundProfile;
5009
5010
  return { [sourceStructureId]: roundProfile };
5010
5011
  })
5011
5012
  );