tods-competition-factory 1.7.16 → 1.7.17

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.
package/dist/index.mjs CHANGED
@@ -333,7 +333,7 @@ const matchUpFormatCode = {
333
333
  };
334
334
 
335
335
  function factoryVersion() {
336
- return "1.7.16";
336
+ return "1.7.17";
337
337
  }
338
338
 
339
339
  function getObjectTieFormat(obj) {
@@ -43702,17 +43702,19 @@ function generateAndPopulatePlayoffStructures(params) {
43702
43702
  loserMatchUp
43703
43703
  }
43704
43704
  } = targetData;
43705
- const targetStructureId = loserTargetLink.target.structureId;
43706
- const targetDrawPosition = loserMatchUp.drawPositions[loserMatchUpDrawPositionIndex];
43707
- const result = assignDrawPositionBye$1({
43708
- drawPosition: targetDrawPosition,
43709
- structureId: targetStructureId,
43710
- tournamentRecord,
43711
- drawDefinition,
43712
- event
43713
- });
43714
- if (result.error)
43715
- console.log(result.error);
43705
+ if (loserTargetLink && loserMatchUp) {
43706
+ const targetStructureId = loserTargetLink.target.structureId;
43707
+ const targetDrawPosition = loserMatchUp.drawPositions[loserMatchUpDrawPositionIndex];
43708
+ const result = assignDrawPositionBye$1({
43709
+ drawPosition: targetDrawPosition,
43710
+ structureId: targetStructureId,
43711
+ tournamentRecord,
43712
+ drawDefinition,
43713
+ event
43714
+ });
43715
+ if (result.error)
43716
+ console.log(result.error);
43717
+ }
43716
43718
  });
43717
43719
  const matchUpModifications = [];
43718
43720
  const goesToMap = addGoesTo({